Problem with (ant build of?) InfusionAll.js (visible with the new ProgressiveEnhancement file)
acheetham at ocad.ca
Fri Dec 10 18:29:18 UTC 2010
I've discovered what seems to be a problem with our assembled InfusionAll.js file. It's quite possible I'm misunderstanding what's going on, so I'm hoping others can help figure this out.
Here's what I think is happening:
The new ProgressiveEnhancement.js file executes a call to fluid.browser.flash() when the file loads (and so this will happen when InfusionAll.js loads). fluid.browser.flash() references swfobject, which is defined by the file swfobject.js in one of the lib folders.
The problem seems to be that inside InfusionAll.js, the definition of swfobject comes *after* the reference inside fluid.browser.flash(), so as the file file loads and is executed, it tries to access swfobject before swfobject actually exists. I experimented by manually moving the definition of swfobject ahead of the use within fluid.browser.flash(), and the problem did go away.
Here's where I'm hoping that people more familiar with the ant build tasks can help: Does the order of occurrence of items in the "dependencies" list in the JSON files have any effect on the order of inclusion in the concatenated file? It doesn't seem to, but if it's supposed to, then that might be the bug... Or maybe it's not supposed to, in which case I'm not sure what to do.
Anyone have any ideas?
Anastasia Cheetham acheetham at ocad.ca
Inclusive Design Institute / OCAD University
More information about the fluid-work