Show
Ignore:
Timestamp:
12/17/07 19:19:39 (13 months ago)
Author:
cho45
Message:

lang/javascript/jsdeferred/trunk/jsdeferred.js:

userscript とかで with をつかう場合フルネームじゃないとエラーでる

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/javascript/jsdeferred/trunk/jsdeferred.js

    r3042 r3213  
    229229        args = Array.prototype.slice.call(arguments); 
    230230        f    = args.shift(); 
    231         return next(function () { 
     231        return Deferred.next(function () { 
    232232                return f.apply(this, args); 
    233233        }); 
     
    261261        }; 
    262262        var ret, step = o.step; 
    263         return next(function () { 
     263        return Deferred.next(function () { 
    264264                function _loop (i) { 
    265265                        if (i <= o.end) { 
     
    273273                                        return ret.next(function (r) { 
    274274                                                ret = r; 
    275                                                 return call(_loop, i + step); 
     275                                                return Deferred.call(_loop, i + step); 
    276276                                        }); 
    277277                                } else { 
    278                                         return call(_loop, i + step); 
     278                                        return Deferred.call(_loop, i + step); 
    279279                                } 
    280280                        } else { 
     
    282282                        } 
    283283                } 
    284                 return call(_loop, o.begin); 
     284                return Deferred.call(_loop, o.begin); 
    285285        }); 
    286286};