Avoid potential memory leaks in Firefox. [#12 state:resolved]
This commit is contained in:
parent
fecdee6f63
commit
b628c6de5c
|
@ -1,3 +1,5 @@
|
|||
* Avoid potential memory leaks in Firefox. (wpc, Tobie Langel) [#12 state:resolved]
|
||||
|
||||
* More unit tests for Object.isHash. (Tobie Langel)
|
||||
|
||||
* Allow Function#argumentNames to handle line breaks between arguments. (Geoff M. Granum, Tobie Langel) [#63 state:resolved]
|
||||
|
|
|
@ -194,6 +194,11 @@ Object.extend(Function.prototype, {
|
|||
}, timeout);
|
||||
},
|
||||
|
||||
defer: function() {
|
||||
var args = [0.01].concat($A(arguments));
|
||||
return this.delay.apply(this, args);
|
||||
},
|
||||
|
||||
wrap: function(wrapper) {
|
||||
var __method = this;
|
||||
return function() {
|
||||
|
@ -210,8 +215,6 @@ Object.extend(Function.prototype, {
|
|||
}
|
||||
});
|
||||
|
||||
Function.prototype.defer = Function.prototype.delay.curry(0.01);
|
||||
|
||||
Date.prototype.toJSON = function() {
|
||||
return '"' + this.getUTCFullYear() + '-' +
|
||||
(this.getUTCMonth() + 1).toPaddedString(2) + '-' +
|
||||
|
|
Loading…
Reference in New Issue