bintzwing/jsdoc_toolkit-2.3.3-beta/app/frame/Namespace.js

10 lines
183 B
JavaScript
Raw Normal View History

2010-05-26 22:34:42 +00:00
_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();
}