sbin/res/jsdoc/app/frame/Namespace.js
author hamidouk
Wed, 04 Jan 2012 11:38:24 +0100
branchpopcorn-port
changeset 578 8dd6ebb7a79d
parent 520 fe008e95a716
permissions -rw-r--r--
fixed .code() bug.

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