[bz4788123] All autoload modules are attached twice #53

Closed
add0n opened this Issue Mar 30, 2012 · 1 comment

Comments

Projects
None yet
2 participants
Contributor

add0n commented Mar 30, 2012

As it turns out, the autoload modules aren't being -loaded- twice, but -attached- twice. By "attach" I mean that the fn part of "Y.add(name, fn, ...)" is being called. So, for binders[1], the fn is called once as it is added to the page-level YUI instance (the one in which mojito-client runs), and again for the YUI instance that is made for the mojit invocation. (Using sharedYUIInstance just means that all mojit invocations share a single YUI instance -- they don't use the page-level YUI instance, though perhaps they should.)

[1] and their dependencies, which is probably where this autoload comes from

Collaborator

caridy commented Jan 29, 2013

Solved by the new loader infrastructure in 0.5.x

@caridy caridy closed this Jan 29, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment