Primeiro commit do projeto Angular
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
export function when(promise, callback, errback) {
|
||||
if (promise && promise.then) {
|
||||
return errback ?
|
||||
promise.then(callback, errback) :
|
||||
promise.then(callback);
|
||||
}
|
||||
return callback(promise);
|
||||
}
|
||||
Reference in New Issue
Block a user