Changeset 7687

Show
Ignore:
Timestamp:
03/19/07 21:26:08 (22 months ago)
Author:
alex
Message:

removing last arg to getObject() after discussion w/ jburke. Refs #2500

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dojo/trunk/_base/_loader/bootstrap.js

    r7684 r7687  
    101101} 
    102102 
    103 dojo.getObject = function(/*String*/name, /*Boolean*/create, /*Object*/obj, /*Boolean*/returnWrapper){ 
     103dojo.getObject = function(/*String*/name, /*Boolean*/create, /*Object*/obj){ 
    104104        // summary:  
    105105        //              gets an object from a dot-separated string, such as "A.B.C" 
     
    115115        //              Optional. If true, Objects will be created at any point along the 
    116116        //              'path' that is undefined. 
    117         //      returnWrapper: 
    118         //              Optional. Returns an object with two properties, 'obj' and 'prop'. 
    119         //              'obj[prop]' is the reference indicated by 'name'. 
    120117        var tprop, tobj = obj||dojo.global(); 
    121118        var parts=name.split("."), i=0, lobj, tmp, tname; 
     
    130127                i++; 
    131128        }while(i<parts.length && tobj); 
    132         tprop = tobj; 
    133         tobj = lobj; 
    134         return (returnWrapper) ? { obj: tobj, prop: tname } : tprop; // Object 
     129        return tobj; // Object 
    135130} 
    136131