Show
Ignore:
Timestamp:
11/28/08 22:48:45 (6 weeks ago)
Author:
cho45
Message:

余計な代入を削除

Location:
lang/javascript/jsdeferred/trunk
Files:
5 modified

Legend:

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

    r25274 r25275  
    1717this._next=new Deferred();this._next.callback[okng]=fun;return this._next;}, 
    1818_fire:function(okng,value){ 
    19 var self=this,next="ok";try{ 
    20 value=self.callback[okng].call(self,value);}catch(e){ 
     19var next="ok";try{ 
     20value=this.callback[okng].call(this,value);}catch(e){ 
    2121next="ng";value=e;} 
    2222if(value instanceof Deferred){ 
    23 value._next=self._next;}else{ 
    24 if(self._next)self._next._fire(next,value);} 
     23value._next=this._next;}else{ 
     24if(this._next)this._next._fire(next,value);} 
    2525return this;} 
    2626};Deferred.parallel=function(dl){ 
  • lang/javascript/jsdeferred/trunk/jsdeferred.js

    r25274 r25275  
    109109 
    110110        _fire : function (okng, value) { 
    111                 var self = this, next = "ok"; 
     111                var next = "ok"; 
    112112                try { 
    113                         value = self.callback[okng].call(self, value); 
     113                        value = this.callback[okng].call(this, value); 
    114114                } catch (e) { 
    115115                        next  = "ng"; 
     
    117117                } 
    118118                if (value instanceof Deferred) { 
    119                         value._next = self._next; 
     119                        value._next = this._next; 
    120120                } else { 
    121                         if (self._next) self._next._fire(next, value); 
     121                        if (this._next) this._next._fire(next, value); 
    122122                } 
    123123                return this; 
  • lang/javascript/jsdeferred/trunk/jsdeferred.mini.js

    r25274 r25275  
    1717this._next=new Deferred();this._next.callback[okng]=fun;return this._next;}, 
    1818_fire:function(okng,value){ 
    19 var self=this,next="ok";try{ 
    20 value=self.callback[okng].call(self,value);}catch(e){ 
     19var next="ok";try{ 
     20value=this.callback[okng].call(this,value);}catch(e){ 
    2121next="ng";value=e;} 
    2222if(value instanceof Deferred){ 
    23 value._next=self._next;}else{ 
    24 if(self._next)self._next._fire(next,value);} 
     23value._next=this._next;}else{ 
     24if(this._next)this._next._fire(next,value);} 
    2525return this;} 
    2626};Deferred.parallel=function(dl){ 
  • lang/javascript/jsdeferred/trunk/jsdeferred.nodoc.js

    r25274 r25275  
    2929 
    3030        _fire : function (okng, value) { 
    31                 var self = this, next = "ok"; 
     31                var next = "ok"; 
    3232                try { 
    33                         value = self.callback[okng].call(self, value); 
     33                        value = this.callback[okng].call(this, value); 
    3434                } catch (e) { 
    3535                        next  = "ng"; 
     
    3737                } 
    3838                if (value instanceof Deferred) { 
    39                         value._next = self._next; 
     39                        value._next = this._next; 
    4040                } else { 
    41                         if (self._next) self._next._fire(next, value); 
     41                        if (this._next) this._next._fire(next, value); 
    4242                } 
    4343                return this; 
  • lang/javascript/jsdeferred/trunk/jsdeferred.userscript.js

    r25274 r25275  
    3333 
    3434        _fire : function (okng, value) { 
    35                 var self = this, next = "ok"; 
     35                var next = "ok"; 
    3636                try { 
    37                         value = self.callback[okng].call(self, value); 
     37                        value = this.callback[okng].call(this, value); 
    3838                } catch (e) { 
    3939                        next  = "ng"; 
     
    4141                } 
    4242                if (value instanceof Deferred) { 
    43                         value._next = self._next; 
     43                        value._next = this._next; 
    4444                } else { 
    45                         if (self._next) self._next._fire(next, value); 
     45                        if (this._next) this._next._fire(next, value); 
    4646                } 
    4747                return this;