This commit is contained in:
ifandelse 2013-04-27 13:03:09 -04:00
commit ccd91a5326
3 changed files with 7 additions and 3 deletions

View file

@ -108,7 +108,9 @@
defer : function () {
var fn = this.callback;
this.callback = function ( data ) {
setTimeout( fn, 0, data );
setTimeout( function () {
fn( data );
}, 0 );
};
return this;
},

2
lib/postal.min.js vendored

File diff suppressed because one or more lines are too long

View file

@ -33,7 +33,9 @@ SubscriptionDefinition.prototype = {
defer : function () {
var fn = this.callback;
this.callback = function ( data ) {
setTimeout( fn, 0, data );
setTimeout( function () {
fn( data );
}, 0 );
};
return this;
},