bintzwing/jsdoc_toolkit-2.3.3-beta/app/frame/Namespace.js
2010-05-26 15:34:42 -07:00

10 lines
No EOL
183 B
JavaScript

_global_ = this;
function Namespace(name, f) {
var n = name.split(".");
for (var o = _global_, i = 0, l = n.length; i < l; i++) {
o = o[n[i]] = o[n[i]] || {};
}
if (f) f();
}