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

function simplified

parent e1c6137f
...@@ -95,12 +95,7 @@ ...@@ -95,12 +95,7 @@
} }
function success(promise) { function success(promise) {
return new Promise(function (resolve, reject, notify) { return promise.then(null, function (reason) { return reason; });
/*jslint unparam: true*/
promise.then(resolve, resolve, notify);
}, function () {
promise.cancel();
});
} }
// /** // /**
......
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