**** BEGIN LOGGING AT Tue Oct 30 02:59:58 2012 Oct 30 15:24:05 sugardave: ping? Oct 30 15:25:22 any ideas on this enyo.load question? http://forums.enyojs.com/discussion/921/enyo-load-and-callback-when-everything-is-loaded Oct 30 15:33:52 woah enyo.load, i had no idea you could even do that Oct 30 15:34:39 why don't you just list them the other way Oct 30 15:35:00 or Oct 30 15:35:21 the question in that thread suggests why, if the js is being created dynamically Oct 30 15:35:51 enyo.load(['path/to/dynamic1.js'], function () {enyo.load(['path/to/dynamic2.js'], function() {})}); Oct 30 15:36:06 *workaround Oct 30 15:36:59 actually that's pretty bad Oct 30 15:37:30 enyo.load(['script1], enyo.load(['script2'], function(){console.log("callback")})); Oct 30 15:37:49 even that is bad, but it should work, and looks nicer Oct 30 15:38:31 fxspec06_: yes, that is the workaround i have thought ... chaining enyo.load calls as callbacks Oct 30 15:39:08 * fxspec06_ wonders where enyo.load is defined Oct 30 15:39:15 boot.js Oct 30 15:39:23 there is a link in the forum post ;) Oct 30 15:39:30 heh Oct 30 15:39:43 i know most of the source 3/4 like back of my hand Oct 30 15:40:14 mayb 1/2-3/4. somewhere in between. but there still new fns and stuff i don't go near Oct 30 15:41:05 i like to go bottom-up ;) and try to see how enyo solves common problems Oct 30 15:42:28 si Oct 30 15:43:15 enyo.loader = new enyo.loaderFactory(enyo.machine); // << pretty badass line right there Oct 30 15:43:29 yeap Oct 30 15:51:04 var args = runtimeLoadQueue.shift(); Oct 30 15:51:38 that's what loads the next in line.. then it sets the callback to args[1] ...... Oct 30 15:52:42 then defines finishCallback, and finally applies it which loads the scripts Oct 30 15:53:07 you COULD bind the callback to an enyo.async Oct 30 15:53:14 that mightr just fix yoru issue Oct 30 15:53:27 o.O Oct 30 15:53:58 enyo.load(['script1','script2'], enyo.async(function(){console.log("callback")})); Oct 30 15:54:13 * katratxo checks Oct 30 15:57:06 fxspec06: enyo.async doesn't exists .. we have enyo.asyncMethod, but it just delaying the execution with a setTimeout Oct 30 15:57:39 for now, i'll chain the calls Oct 30 15:58:13 asyncMethod is what i meant Oct 30 15:58:42 the setTimeout should force it to wait until other processes are finished Oct 30 16:00:06 i can't explain why the callback happens after the first file, though. i'm not sure it was designed to do what you're trying to do, best way mgiht be just to chain the calls Oct 30 16:00:16 although it does seem backwards Oct 30 16:01:01 you COULD define your own private enyo.loader Oct 30 16:01:19 and force fix it to do what you need. but that seems.. overkill Oct 30 16:03:56 fxspec06: thanks, is not really a big deal i have done similar things using LABjs Oct 30 16:05:35 cool. Oct 30 16:05:45 * fxspec06 resumes not having school today Oct 30 17:27:50 katratxo: I took a stab at the enyo.load question Oct 30 17:28:02 sugardave: thanks! Oct 30 17:28:11 short answer: chain enyo.loads together to enforce ordering Oct 30 17:29:28 sugardave: ok, thanks Oct 30 22:24:04 katratxo: so, I did a little more digging and my initial assessment was incorrect. The enyo.loaderFactory clearly should be loading your sources, in order, and then executing the finalCallback Oct 30 22:24:29 sorry for the confusion :) **** ENDING LOGGING AT Wed Oct 31 02:59:58 2012