Changeset 7687
- Timestamp:
- 03/19/07 21:26:08 (22 months ago)
- Files:
-
- 1 modified
-
dojo/trunk/_base/_loader/bootstrap.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dojo/trunk/_base/_loader/bootstrap.js
r7684 r7687 101 101 } 102 102 103 dojo.getObject = function(/*String*/name, /*Boolean*/create, /*Object*/obj , /*Boolean*/returnWrapper){103 dojo.getObject = function(/*String*/name, /*Boolean*/create, /*Object*/obj){ 104 104 // summary: 105 105 // gets an object from a dot-separated string, such as "A.B.C" … … 115 115 // Optional. If true, Objects will be created at any point along the 116 116 // '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'.120 117 var tprop, tobj = obj||dojo.global(); 121 118 var parts=name.split("."), i=0, lobj, tmp, tname; … … 130 127 i++; 131 128 }while(i<parts.length && tobj); 132 tprop = tobj; 133 tobj = lobj; 134 return (returnWrapper) ? { obj: tobj, prop: tname } : tprop; // Object 129 return tobj; // Object 135 130 } 136 131