mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-23 05:36:09 +03:00
10 lines
183 B
JavaScript
10 lines
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();
|
||
|
}
|