public
Description: Prototype JavaScript framework
Homepage: http://prototypejs.org/
Clone URL: git://github.com/sstephenson/prototype.git
Search Repo:
Avoid potential memory leaks in Firefox. [#12 state:resolved]
tobie (author)
Wed May 07 03:35:43 -0700 2008
commit  3c9ebd48aeb087bfdd324cbeb669cbb4af3d7424
tree    7db6655f38c0c0c4d4d18301e499f0c341e3aa99
parent  1204b07b0645390e5718be98d3c58b6f5e9b41cf
...
 
 
1
2
3
...
1
2
3
4
5
0
@@ -1,3 +1,5 @@
0
+* Avoid potential memory leaks in Firefox. (wpc, Tobie Langel) [#12 state:resolved]
0
+
0
 * More unit tests for Object.isHash. (Tobie Langel)
0
 
0
 * Allow Function#argumentNames to handle line breaks between arguments. (Geoff M. Granum, Tobie Langel) [#63 state:resolved]
...
194
195
196
 
 
 
 
 
197
198
199
...
210
211
212
213
214
215
216
217
...
194
195
196
197
198
199
200
201
202
203
204
...
215
216
217
 
 
218
219
220
0
@@ -194,6 +194,11 @@ Object.extend(Function.prototype, {
0
     }, timeout);
0
   },
0
   
0
+ defer: function() {
0
+ var args = [0.01].concat($A(arguments));
0
+ return this.delay.apply(this, args);
0
+ },
0
+
0
   wrap: function(wrapper) {
0
     var __method = this;
0
     return function() {
0
@@ -210,8 +215,6 @@ Object.extend(Function.prototype, {
0
   }
0
 });
0
 
0
-Function.prototype.defer = Function.prototype.delay.curry(0.01);
0
-
0
 Date.prototype.toJSON = function() {
0
   return '"' + this.getUTCFullYear() + '-' +
0
     (this.getUTCMonth() + 1).toPaddedString(2) + '-' +

Comments

  • jdalton Wed May 07 05:11:07 -0700 2008

    Awesome!!!!, but what causes it?

  • samleb Wed May 07 05:34:32 -0700 2008

    yeah, did you finally figure out what was going on ?

  • tobie Wed May 07 10:45:32 -0700 2008

    Unfortunately no. So if anyone is interested in finding out. Please go ahead.