Merge pull request #773 from clarkorz/fix/bluebird-v3-warning

silence a warning that introduced in bluebird 3.0.x
This commit is contained in:
Raymond Feng 2015-11-26 09:26:44 -08:00
commit 6cfcc4296f
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ ObserverMixin.notifyObserversOf = function(operation, context, callback) {
var retval = fn(context, next);
if (retval && typeof retval.then === 'function') {
retval.then(
function() { next(); },
function() { next(); return null; },
next // error handler
);
}