jcoglan/js.class — Issue #25: Deadlock problem
Author: gossi
Created: 2011-10-23 09:26:26+00:00
State: open

It looks like, deadlocks are possible with the loader. My little test script here: https://gist.github.com/1307151
Some lines about this snippet:

- ready never happens
- I can see the `Loading ...` and `Executing ...` lines in the console
- If you change from `uses` to `require`, only the `Loading ...` lines in the console appear, never the `Executing ...` ones
- If you remove either one of the `uses` the ready works

Please make a circular dependency detection and free up the last chain. It's like when 4 cars arrive at a crossing one driver needs to abstain from its right of way (I wrote myself a loader once and that metaphor helped me with that one).

Thanks