Ticket #10782: patch.diff
| File patch.diff, 0.6 kB (added by wpc, 6 months ago) |
|---|
-
src/base.js
old new 192 192 }, timeout); 193 193 }, 194 194 195 defer: function() { 196 var args = [0.01].concat($A(arguments)); 197 return this.delay.apply(this, args); 198 }, 199 195 200 wrap: function(wrapper) { 196 201 var __method = this; 197 202 return function() { … … 208 213 } 209 214 }); 210 215 211 Function.prototype.defer = Function.prototype.delay.curry(0.01);212 213 216 Date.prototype.toJSON = function() { 214 217 return '"' + this.getUTCFullYear() + '-' + 215 218 (this.getUTCMonth() + 1).toPaddedString(2) + '-' +