mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
fixing undefined fn error in Promise.halt (#14296)
This commit is contained in:
parent
4129353726
commit
820fe03c76
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ module.service('Promise', function ($q, $timeout) {
|
|||
return obj && typeof obj.then === 'function';
|
||||
};
|
||||
Promise.halt = _.once(function () {
|
||||
const promise = new Promise();
|
||||
const promise = new Promise(() => {});
|
||||
promise.then = _.constant(promise);
|
||||
promise.catch = _.constant(promise);
|
||||
return promise;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue