thirdparty/jsdoctoolkit/app/frame/Namespace.js
author Lennard de Rijk <ljvderijk@gmail.com>
Sun, 08 Nov 2009 11:54:44 -0800
changeset 3080 30a33926ab91
parent 3041 c8f47f0b6697
permissions -rw-r--r--
Fixed an error with the task_history not being loaded when it was empty.

_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();
}