mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
clean up the manual deferred a little
This commit is contained in:
parent
f92ed0a7a6
commit
92829c0660
1 changed files with 3 additions and 3 deletions
|
@ -161,9 +161,9 @@ define(function (require) {
|
|||
segmentedFetch.prototype._executeSearch = function (index, state) {
|
||||
var resolve, reject;
|
||||
|
||||
this.searchPromise = new Promise(function (res, rej) {
|
||||
resolve = res;
|
||||
reject = rej;
|
||||
this.searchPromise = new Promise(function () {
|
||||
resolve = arguments[0];
|
||||
reject = arguments[1];
|
||||
});
|
||||
|
||||
var clientPromise = es.search({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue