Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #10782: patch.diff

File patch.diff, 0.6 kB (added by wpc, 6 months ago)

I still haven't figure out the reason of leaking on firefox, but this patch is good enough for fixing it.

  • src/base.js

    old new  
    192192    }, timeout); 
    193193  }, 
    194194   
     195  defer: function() { 
     196    var args = [0.01].concat($A(arguments)); 
     197    return this.delay.apply(this, args); 
     198  }, 
     199   
    195200  wrap: function(wrapper) { 
    196201    var __method = this; 
    197202    return function() { 
     
    208213  } 
    209214}); 
    210215 
    211 Function.prototype.defer = Function.prototype.delay.curry(0.01); 
    212  
    213216Date.prototype.toJSON = function() { 
    214217  return '"' + this.getUTCFullYear() + '-' + 
    215218    (this.getUTCMonth() + 1).toPaddedString(2) + '-' +