PageRenderTime 17ms CodeModel.GetById 10ms app.highlight 3ms RepoModel.GetById 2ms app.codeStats 0ms

/tags/jsdoc_toolkit-2.0.1/jsdoc-toolkit/app/frame/Namespace.js

http://jsdoc-toolkit.googlecode.com/
JavaScript | 10 lines | 8 code | 2 blank | 0 comment | 3 complexity | f2ef1ebb93f810ce7d6e74a5581f3905 MD5 | raw file
 1_global_ = this;
 2
 3function Namespace(name, f) {
 4	var n = name.split(".");
 5	for (var o = _global_, i = 0, l = n.length; i < l; i++) {
 6		o = o[n[i]] = o[n[i]] || {};
 7	}
 8	
 9	if (f) f();
10}