Closed GoogleCodeExporter closed 9 years ago
I found this was trickier to implement than I'd expected because the
queue.length isn't
trustworthy to check while iterating through loadScripts (since some items may
contain
IEconditions and won't be applied in depending on the browser).
We may need to add a cleanQueue function early in the script that finds all
children of
loadScripts and loadStyles that have ieConditional attributes and removes those
children
in Browsers that don't apply. Then the queue will contain only valid entries
and we can
make the final script trigger the onScriptsLoaded callback once it finishes
loading.
Original comment by scottj...@gmail.com
on 18 Mar 2010 at 8:18
Attached a patch that seems to cover all the use cases here. The option name is
onScriptsLoaded.
Original comment by scottj...@gmail.com
on 18 Mar 2010 at 10:53
Attachments:
added http://code.google.com/p/enhancejs/source/detail?r=79
Original comment by scottj...@gmail.com
on 24 Mar 2010 at 10:01
Original issue reported on code.google.com by
scottj...@gmail.com
on 12 Mar 2010 at 9:41