Sha256: 76ef9db41277e79868eba63864631d157cd805c8d6735d152ed0cd6c001d8fa7
Contents?: true
Size: 1.24 KB
Versions: 8
Compression:
Stored size: 1.24 KB
Contents
(function(){if(!this.require){var modules={},cache={};var require=function(name,root){var path=expand(root,name),indexPath=expand(path,'./index'),module,fn;module=cache[path]||cache[indexPath];if(module){return module;}else if(fn=modules[path]||modules[path=indexPath]){module={id:path,exports:{}};cache[path]=module.exports;fn(module.exports,function(name){return require(name,dirname(path));},module);return cache[path]=module.exports;}else{throw'module '+name+' not found';}};var expand=function(root,name){var results=[],parts,part;if(/^\.\.?(\/|$)/.test(name)){parts=[root,name].join('/').split('/');}else{parts=name.split('/');} for(var i=0,length=parts.length;i<length;i++){part=parts[i];if(part=='..'){results.pop();}else if(part!='.'&&part!=''){results.push(part);}} return results.join('/');};var dirname=function(path){return path.split('/').slice(0,-1).join('/');};this.require=function(name){return require(name,'');};this.require.define=function(bundle){for(var key in bundle){modules[key]=bundle[key];}};this.require.modules=modules;this.require.cache=cache;} return this.require.define;}).call(this)({"app":function(exports,require,module){alert("stitch-app")},"view.js":function(exports,require,module){(function(){alert("stitch-view");}).call(this);}});
Version data entries
8 entries across 8 versions & 1 rubygems