jokeyrhyme/requirejs-promise — pull request #3 by staeke (2014-03-13 21:21:56+00:00)
Title: Since we're "leaving the promise world", we should terminate the continu...

Since we're "leaving the promise world", we should terminate the continuation chain with a done function. Otherwise exceptions from the AMD module that requires the promise module won't be visible.

Example:

define('promiseModule', function() {
return Q({});
})

define(function(require) {
var result = require('promiseModule');
result.DoSomethingWeird(); // This exception will be hidden since it's "inside" a promise chain
})