Open dizzib opened 11 years ago
Hey Andy!
Cycle detection logic is something I don't want to add to curl.js. It's something I'd love to add to curl/debug, though. :) Thanks for the reminder.
It is possible to have circular dependencies with AMD modules, but you have to write your modules carefully. If you think you have a good use case for a mutual dependency (A->B and B->A), open another issue and I'll show you how to do it. You can also ask on the google group: https://groups.google.com/d/forum/cujojs
Regards,
-- John
Curl hangs if module A depends on module B and B depends on A.
Would be better if curl errored or gave a warning.