Sha256: 62598e5426e9a9db821b16dfc9337c37f3fc218973b2a8e3d0f2349b9992f2a6
Contents?: true
Size: 1.03 KB
Versions: 4
Compression:
Stored size: 1.03 KB
Contents
var JSAN = { global: this, use: function (module, symbols) { var components = module.split(/\./); var fn = components.join('/') + '.js'; var o = JSAN.global; var i, c; for (i = 0; i < components.length; i++) { o = o[components[i]]; if (typeof(o) == 'undefined') { break; } } if (typeof(o) != 'undefined') { return o; } load(fn); o = JSAN.global; for (i = 0; i < components.length; i++) { o = o[components[i]]; if (typeof(o) == 'undefined') { return undefined; } } if (!symbols) { var tags = o.EXPORT_TAGS; if (tags) { symbols = tags[':common'] || tags[':all']; } } if (symbols) { for (i = 0; i < symbols.length; i++) { c = symbols[i]; JSAN.global[c] = o[c]; } } return o; } };
Version data entries
4 entries across 4 versions & 1 rubygems