Avoid potential memory leaks in Firefox. [#12 state:resolved]

This commit is contained in:
Tobie Langel 2008-05-07 12:35:43 +02:00
parent fecdee6f63
commit b628c6de5c
2 changed files with 7 additions and 2 deletions

View File

@ -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]

View File

@ -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) + '-' +