(obj, path, value)
| 193 | } |
| 194 | |
| 195 | function treeIndexSet(obj, path, value) { |
| 196 | if (typeof path === "string") { |
| 197 | treeIndexSet(obj, path.split("."), value); |
| 198 | } else if (path.length === 1) { |
| 199 | obj[path[0]] = value; |
| 200 | } else { |
| 201 | obj[path[0]] = obj[path[0]] || {}; |
| 202 | treeIndexSet(obj[path[0]], path.slice(1), value); |
| 203 | } |
| 204 | } |
| 205 | |
| 206 | function registerClass(obj, path) { |
| 207 | var currentClassType, currentClassPath, collidingClassType, collidingClassPath, |