All Downloads are FREE. Search and download functionalities are using the official Maven repository.

templates.overview.resources.js.lib.require.js Maven / Gradle / Ivy

Go to download

Runs multiple web applications in multiple tomcats on a single machine. Stool is a command line tool that provides a lifecycle for stages: create, configure, build, run and remove. A stage contains web applications, that may come in different flavors: Maven war projects or artifacts (GAV coordinates).

The newest version!
/*
 RequireJS 2.1.12 Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved.
 Available via the MIT or new BSD license.
 see: http://github.com/jrburke/requirejs for details
*/
var requirejs,require,define;
(function(ba){function G(b){return"[object Function]"===K.call(b)}function H(b){return"[object Array]"===K.call(b)}function v(b,c){if(b){var d;for(d=0;dc||".."===j[c-1])&&0this.depCount&&!this.defined){if(G(j)){if(this.events.error&&this.map.isDefine||f.onError!==ca)try{g=i.execCb(c,j,b,g)}catch(d){a=d}else g=i.execCb(c,j,b,g);this.map.isDefine&&void 0===g&&((b=this.module)?g=b.exports:this.usingExports&&(g=this.exports));if(a)return a.requireMap=this.map,a.requireModules=this.map.isDefine?
[this.map.id]:null,a.requireType=this.map.isDefine?"define":"require",w(this.error=a)}else g=j;this.exports=g;if(this.map.isDefine&&!this.ignore&&(r[c]=g,f.onResourceLoad))f.onResourceLoad(i,this.map,this.depMaps);y(c);this.defined=!0}this.defining=!1;this.defined&&!this.defineEmitted&&(this.defineEmitted=!0,this.emit("defined",this.exports),this.defineEmitComplete=!0)}}else this.fetch()}},callPlugin:function(){var a=this.map,b=a.id,d=p(a.prefix);this.depMaps.push(d);q(d,"defined",u(this,function(g){var j,
d;d=l(aa,this.map.id);var e=this.map.name,P=this.map.parentMap?this.map.parentMap.name:null,n=i.makeRequire(a.parentMap,{enableBuildCallback:!0});if(this.map.unnormalized){if(g.normalize&&(e=g.normalize(e,function(a){return c(a,P,!0)})||""),g=p(a.prefix+"!"+e,this.map.parentMap),q(g,"defined",u(this,function(a){this.init([],function(){return a},null,{enabled:!0,ignore:!0})})),d=l(h,g.id)){this.depMaps.push(g);if(this.events.error)d.on("error",u(this,function(a){this.emit("error",a)}));d.enable()}}else d?
(this.map.url=i.nameToUrl(d),this.load()):(j=u(this,function(a){this.init([],function(){return a},null,{enabled:!0})}),j.error=u(this,function(a){this.inited=!0;this.error=a;a.requireModules=[b];B(h,function(a){0===a.map.id.indexOf(b+"_unnormalized")&&y(a.map.id)});w(a)}),j.fromText=u(this,function(g,c){var d=a.name,e=p(d),P=M;c&&(g=c);P&&(M=!1);s(e);t(k.config,b)&&(k.config[d]=k.config[b]);try{f.exec(g)}catch(h){return w(C("fromtexteval","fromText eval for "+b+" failed: "+h,h,[b]))}P&&(M=!0);this.depMaps.push(e);
i.completeLoad(d);n([d],j)}),g.load(a.name,n,j,k))}));i.enable(d,this);this.pluginMaps[d.id]=d},enable:function(){V[this.map.id]=this;this.enabling=this.enabled=!0;v(this.depMaps,u(this,function(a,b){var c,g;if("string"===typeof a){a=p(a,this.map.isDefine?this.map:this.map.parentMap,!1,!this.skipMap);this.depMaps[b]=a;if(c=l(L,a.id)){this.depExports[b]=c(this);return}this.depCount+=1;q(a,"defined",u(this,function(a){this.defineDep(b,a);this.check()}));this.errback&&q(a,"error",u(this,this.errback))}c=
a.id;g=h[c];!t(L,c)&&(g&&!g.enabled)&&i.enable(a,this)}));B(this.pluginMaps,u(this,function(a){var b=l(h,a.id);b&&!b.enabled&&i.enable(a,this)}));this.enabling=!1;this.check()},on:function(a,b){var c=this.events[a];c||(c=this.events[a]=[]);c.push(b)},emit:function(a,b){v(this.events[a],function(a){a(b)});"error"===a&&delete this.events[a]}};i={config:k,contextName:b,registry:h,defined:r,urlFetched:S,defQueue:A,Module:Z,makeModuleMap:p,nextTick:f.nextTick,onError:w,configure:function(a){a.baseUrl&&
"/"!==a.baseUrl.charAt(a.baseUrl.length-1)&&(a.baseUrl+="/");var b=k.shim,c={paths:!0,bundles:!0,config:!0,map:!0};B(a,function(a,b){c[b]?(k[b]||(k[b]={}),U(k[b],a,!0,!0)):k[b]=a});a.bundles&&B(a.bundles,function(a,b){v(a,function(a){a!==b&&(aa[a]=b)})});a.shim&&(B(a.shim,function(a,c){H(a)&&(a={deps:a});if((a.exports||a.init)&&!a.exportsFn)a.exportsFn=i.makeShimExports(a);b[c]=a}),k.shim=b);a.packages&&v(a.packages,function(a){var b,a="string"===typeof a?{name:a}:a;b=a.name;a.location&&(k.paths[b]=
a.location);k.pkgs[b]=a.name+"/"+(a.main||"main").replace(ia,"").replace(Q,"")});B(h,function(a,b){!a.inited&&!a.map.unnormalized&&(a.map=p(b))});if(a.deps||a.callback)i.require(a.deps||[],a.callback)},makeShimExports:function(a){return function(){var b;a.init&&(b=a.init.apply(ba,arguments));return b||a.exports&&da(a.exports)}},makeRequire:function(a,e){function k(c,d,l){var n,q;e.enableBuildCallback&&(d&&G(d))&&(d.__requireJsBuild=!0);if("string"===typeof c){if(G(d))return w(C("requireargs","Invalid require call"),
l);if(a&&t(L,c))return L[c](h[a.id]);if(f.get)return f.get(i,c,a,k);n=p(c,a,!1,!0);n=n.id;return!t(r,n)?w(C("notloaded",'Module name "'+n+'" has not been loaded yet for context: '+b+(a?"":". Use require([])"))):r[n]}J();i.nextTick(function(){J();q=s(p(null,a));q.skipMap=e.skipMap;q.init(c,d,l,{enabled:!0});D()});return k}e=e||{};U(k,{isBrowser:z,toUrl:function(b){var d,e=b.lastIndexOf("."),f=b.split("/")[0];if(-1!==e&&(!("."===f||".."===f)||1e.attachEvent.toString().indexOf("[native code"))&&!Y?(M=!0,e.attachEvent("onreadystatechange",b.onScriptLoad)):(e.addEventListener("load",b.onScriptLoad,!1),e.addEventListener("error",
b.onScriptError,!1)),e.src=d,J=e,D?y.insertBefore(e,D):y.appendChild(e),J=null,e;if(ea)try{importScripts(d),b.completeLoad(c)}catch(l){b.onError(C("importscripts","importScripts failed for "+c+" at "+d,l,[c]))}};z&&!q.skipDataMain&&T(document.getElementsByTagName("script"),function(b){y||(y=b.parentNode);if(I=b.getAttribute("data-main"))return s=I,q.baseUrl||(E=s.split("/"),s=E.pop(),O=E.length?E.join("/")+"/":"./",q.baseUrl=O),s=s.replace(Q,""),f.jsExtRegExp.test(s)&&(s=I),q.deps=q.deps?q.deps.concat(s):
[s],!0});define=function(b,c,d){var e,f;"string"!==typeof b&&(d=c,c=b,b=null);H(c)||(d=c,c=null);!c&&G(d)&&(c=[],d.length&&(d.toString().replace(ka,"").replace(la,function(b,d){c.push(d)}),c=(1===d.length?["require"]:["require","exports","module"]).concat(c)));if(M){if(!(e=J))N&&"interactive"===N.readyState||T(document.getElementsByTagName("script"),function(b){if("interactive"===b.readyState)return N=b}),e=N;e&&(b||(b=e.getAttribute("data-requiremodule")),f=F[e.getAttribute("data-requirecontext")])}(f?
f.defQueue:R).push([b,c,d])};define.amd={jQuery:!0};f.exec=function(b){return eval(b)};f(q)}})(this);




© 2015 - 2024 Weber Informatics LLC | Privacy Policy