Changeset 8249

Show
Ignore:
Timestamp:
04/23/07 14:45:14 (19 months ago)
Author:
alex
Message:

I'm a freaking idiot. My apologies to scott and adam for screwing things up for both of them. Refs #2641

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dojo/trunk/_base/lang.js

    r8235 r8249  
    130130        //              dojo.hitch(foo, "bar")(); // runs foo.bar() in the scope of foo 
    131131        //              dojo.hitch(foo, myFunction); // returns a function that runs myFunction in the scope of foo 
    132         var _a = arguments; 
    133         if(_a.length > 2){ 
    134                 return dojo._hitchArgs.apply(dojo, _a); 
     132        if(arguments.length > 2){ 
     133                return dojo._hitchArgs.apply(dojo, arguments); 
    135134        } 
    136135        if(!method){ 
     
    140139        if(dojo.isString(method)){ 
    141140                scope = scope || dojo.global; 
    142                 return function(){ return scope[method].apply(scope, _a||[]); } 
     141                return function(){ return scope[method].apply(scope, arguments||[]); } 
    143142        }else{ 
    144                 return (!scope ? method : function(){ return method.apply(scope, _a||[]); }); 
     143                return (!scope ? method : function(){ return method.apply(scope, arguments||[]); }); 
    145144        } 
    146145}