Skip to content
Browse files

Fix script loading order

  • Loading branch information...
1 parent fa98d2a commit aad91be7eeaac908e99c4991ab4ba33c38db1ecb @yonromai committed Jun 1, 2012
Showing with 13 additions and 4 deletions.
  1. +5 −4 js/main.js
  2. +8 −0 js/order.js
View
9 js/main.js
@@ -4,8 +4,9 @@ require([
"/js/lib/bootstrap-dropdown.js",
"/js/lib/bootstrap-alert.js",
"/js/lib/modestmaps.js",
- "/js/complexcity.js",
- "/js/nodes.js",
- "/js/spotlight.js",
- "/js/modestmaps.markers.js"
+ "order!/js/confighelpers.js",
+ "order!/js/nodes.js",
+ "order!/js/spotlight.js",
+ "order!/js/modestmaps.markers.js",
+ "order!/js/complexcity.js"
]);
View
8 js/order.js
@@ -0,0 +1,8 @@
+/*
+ RequireJS order 1.0.5 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
+ Available via the MIT or new BSD license.
+ see: http://github.com/jrburke/requirejs for details
+*/
+(function(){function k(a){var b=a.currentTarget||a.srcElement,c;if(a.type==="load"||l.test(b.readyState)){a=b.getAttribute("data-requiremodule");j[a]=!0;for(a=0;c=g[a];a++)if(j[c.name])c.req([c.name],c.onLoad);else break;a>0&&g.splice(0,a);setTimeout(function(){b.parentNode.removeChild(b)},15)}}function m(a){var b,c;a.setAttribute("data-orderloaded","loaded");for(a=0;c=h[a];a++)if((b=i[c])&&b.getAttribute("data-orderloaded")==="loaded")delete i[c],require.addScriptToDom(b);else break;a>0&&h.splice(0,
+a)}var f=typeof document!=="undefined"&&typeof window!=="undefined"&&document.createElement("script"),n=f&&(f.async||window.opera&&Object.prototype.toString.call(window.opera)==="[object Opera]"||"MozAppearance"in document.documentElement.style),o=f&&f.readyState==="uninitialized",l=/^(complete|loaded)$/,g=[],j={},i={},h=[],f=null;define({version:"1.0.5",load:function(a,b,c,e){var d;b.nameToUrl?(d=b.nameToUrl(a,null),require.s.skipAsync[d]=!0,n||e.isBuild?b([a],c):o?(e=require.s.contexts._,!e.urlFetched[d]&&
+!e.loaded[a]&&(e.urlFetched[d]=!0,require.resourcesReady(!1),e.scriptCount+=1,d=require.attach(d,e,a,null,null,m),i[a]=d,h.push(a)),b([a],c)):b.specified(a)?b([a],c):(g.push({name:a,req:b,onLoad:c}),require.attach(d,null,a,k,"script/cache"))):b([a],c)}})})();

0 comments on commit aad91be

Please sign in to comment.
Something went wrong with that request. Please try again.