unscriptable/curl — Issue #48: let devs pick which execution timing to use (don't export too early)
Author: unscriptable
Created: 2012-01-12 13:11:49+00:00
State: open

curl's algorithm for cascading module dependencies is aggressive. It doesn't wait for the "next turn" before cascading a module's exports to dependent modules and can therefore, call the cascading define() calls before the exports are fully defined.

While we (@cujojs) don't consider this to be a bug in curl.js, we believe we should have a better way to accommodate naively-coded AMD modules that export too early.

This could be a config property: `waitForNextTurn: true`

or the converse: `cascadeAsap: true`