Changeset 25275 for lang/javascript/jsdeferred/trunk
- Timestamp:
- 11/28/08 22:48:45 (6 weeks ago)
- Location:
- lang/javascript/jsdeferred/trunk
- Files:
-
- 5 modified
-
jsdeferred.jquery.js (modified) (1 diff)
-
jsdeferred.js (modified) (2 diffs)
-
jsdeferred.mini.js (modified) (1 diff)
-
jsdeferred.nodoc.js (modified) (2 diffs)
-
jsdeferred.userscript.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/jsdeferred/trunk/jsdeferred.jquery.js
r25274 r25275 17 17 this._next=new Deferred();this._next.callback[okng]=fun;return this._next;}, 18 18 _fire:function(okng,value){ 19 var self=this,next="ok";try{20 value= self.callback[okng].call(self,value);}catch(e){19 var next="ok";try{ 20 value=this.callback[okng].call(this,value);}catch(e){ 21 21 next="ng";value=e;} 22 22 if(value instanceof Deferred){ 23 value._next= self._next;}else{24 if( self._next)self._next._fire(next,value);}23 value._next=this._next;}else{ 24 if(this._next)this._next._fire(next,value);} 25 25 return this;} 26 26 };Deferred.parallel=function(dl){ -
lang/javascript/jsdeferred/trunk/jsdeferred.js
r25274 r25275 109 109 110 110 _fire : function (okng, value) { 111 var self = this,next = "ok";111 var next = "ok"; 112 112 try { 113 value = self.callback[okng].call(self, value);113 value = this.callback[okng].call(this, value); 114 114 } catch (e) { 115 115 next = "ng"; … … 117 117 } 118 118 if (value instanceof Deferred) { 119 value._next = self._next;119 value._next = this._next; 120 120 } else { 121 if ( self._next) self._next._fire(next, value);121 if (this._next) this._next._fire(next, value); 122 122 } 123 123 return this; -
lang/javascript/jsdeferred/trunk/jsdeferred.mini.js
r25274 r25275 17 17 this._next=new Deferred();this._next.callback[okng]=fun;return this._next;}, 18 18 _fire:function(okng,value){ 19 var self=this,next="ok";try{20 value= self.callback[okng].call(self,value);}catch(e){19 var next="ok";try{ 20 value=this.callback[okng].call(this,value);}catch(e){ 21 21 next="ng";value=e;} 22 22 if(value instanceof Deferred){ 23 value._next= self._next;}else{24 if( self._next)self._next._fire(next,value);}23 value._next=this._next;}else{ 24 if(this._next)this._next._fire(next,value);} 25 25 return this;} 26 26 };Deferred.parallel=function(dl){ -
lang/javascript/jsdeferred/trunk/jsdeferred.nodoc.js
r25274 r25275 29 29 30 30 _fire : function (okng, value) { 31 var self = this,next = "ok";31 var next = "ok"; 32 32 try { 33 value = self.callback[okng].call(self, value);33 value = this.callback[okng].call(this, value); 34 34 } catch (e) { 35 35 next = "ng"; … … 37 37 } 38 38 if (value instanceof Deferred) { 39 value._next = self._next;39 value._next = this._next; 40 40 } else { 41 if ( self._next) self._next._fire(next, value);41 if (this._next) this._next._fire(next, value); 42 42 } 43 43 return this; -
lang/javascript/jsdeferred/trunk/jsdeferred.userscript.js
r25274 r25275 33 33 34 34 _fire : function (okng, value) { 35 var self = this,next = "ok";35 var next = "ok"; 36 36 try { 37 value = self.callback[okng].call(self, value);37 value = this.callback[okng].call(this, value); 38 38 } catch (e) { 39 39 next = "ng"; … … 41 41 } 42 42 if (value instanceof Deferred) { 43 value._next = self._next;43 value._next = this._next; 44 44 } else { 45 if ( self._next) self._next._fire(next, value);45 if (this._next) this._next._fire(next, value); 46 46 } 47 47 return this;
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)