Commit 3645bf0d authored by Tristan Cavelier's avatar Tristan Cavelier

function simplified

parent e1c6137f
......@@ -95,12 +95,7 @@
}
function success(promise) {
return new Promise(function (resolve, reject, notify) {
/*jslint unparam: true*/
promise.then(resolve, resolve, notify);
}, function () {
promise.cancel();
});
return promise.then(null, function (reason) { return reason; });
}
// /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment