diff options
Diffstat (limited to 'common/src/main/webapp/usageguide/appserver/node_modules/mongodb/node_modules/es6-promise/lib/es6-promise/then.js')
-rw-r--r-- | common/src/main/webapp/usageguide/appserver/node_modules/mongodb/node_modules/es6-promise/lib/es6-promise/then.js | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/common/src/main/webapp/usageguide/appserver/node_modules/mongodb/node_modules/es6-promise/lib/es6-promise/then.js b/common/src/main/webapp/usageguide/appserver/node_modules/mongodb/node_modules/es6-promise/lib/es6-promise/then.js deleted file mode 100644 index f97e946..0000000 --- a/common/src/main/webapp/usageguide/appserver/node_modules/mongodb/node_modules/es6-promise/lib/es6-promise/then.js +++ /dev/null @@ -1,34 +0,0 @@ -import { - invokeCallback, - subscribe, - FULFILLED, - REJECTED, - noop, - makePromise, - PROMISE_ID -} from './-internal'; - -import { asap } from './asap'; - -export default function then(onFulfillment, onRejection) { - var parent = this; - - var child = new this.constructor(noop); - - if (child[PROMISE_ID] === undefined) { - makePromise(child); - } - - var state = parent._state; - - if (state) { - var callback = arguments[state - 1]; - asap(function(){ - invokeCallback(state, child, callback, parent._result); - }); - } else { - subscribe(parent, child, onFulfillment, onRejection); - } - - return child; -} |