-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Description
From this thread:
http://groups.google.com/group/requirejs/browse_thread/thread/81fb48276f7831b0
It was suggested to have a paths array value that would trigger the "onerror/undef/reconfigure/retry" logic automatically if the path failed.
Another option or addition would be for the errback to receive the current list and where it is in the retry logic.
I would tend to only want to support the automatic logic, and not give position info in a require errback. If fine grained control of the retry is desired, then just the errback should be used without specifying an array to try.
What is also not clear to me yet is how errbacks should work in general when more than one can be triggered for a failed module. Right now both will be triggered. However, no state is shared, and there is no canceling of further error notifications.
Maybe returning true from the error handler means it has been handled, or some other mechanism? Starting to feel heavier weight.