| Page 1 of 1 | [ 3 posts ] |
|
I'm trying to use yui3, gallery and my custom modules (all under the name epsilon-) locally. I've also setup the PHP combo loader to server 3.3.0pr3, latest gallery build and my own custom modules.
My Config is: YUI configClick here to see the revision history on this Gist.With this config the YUI3 modules are loaded correctly, however the requires of gallery- and epsilon- modules are not loaded leading to init errors. Any help/pointers would be appreciated. |
|
I did some more debugging/tracing: using the debug versions (and a liberal sprinkling of console.debugs) and comparing the combine:true logs with the combine:false logs.
So far it seems that 2 separate instances of YUI get loaded. The initial one is loaded by the include of yui.js. The second fresh one is instantiated from the combo file (which includes yui-base.js. This second instance does not have access to the loader created by the first yui.js. Thus when gallery-dispatcher is loaded, it cannot get the loader instance to add the requires to. AFAIK the relevant portion is (in yui.js): Code: for (i in instances) { console.info("T1",i); if (instances.hasOwnProperty(i)) { console.info("T2"); loader = instances[i].Env._loader; if (loader) { console.warn("Loader Found: T3",instances[i].Env); if (!loader.moduleInfo[name]) { console.info("T4"); loader.addModule(details, name); } } else { console.warn("No loader!:",instances[i].Env); } } } |
|
Another data point.
Currently the HTTP load requests are:
* /static/vendor/lib/3.3.0pr3/build/loader/loader-debug.js * /combo.php?3.3.0pr3/build/dump/dump-debug.js * /static/vendor/lib/gallery/build/gallery-dispatcher/gallery-dispatcher-debug.js The combo call for dump-debug.js also pulls in yui-base-debug.js which initializes the new YU instance (as noted in my previous post). If I manually edit the combo loader metaconfig (config_3.3.0pr3.php) to remove yui-base from the requires list of dump everything works! I'm not sure if this is the right fix, or I'm missing something in loader and yui config. regards |
| Page 1 of 1 | [ 3 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group