citong-react-web
Version:
A framework for building web apps with React
21 lines (16 loc) • 419 B
JavaScript
/**
* Copyright (c) 2015-present, Alibaba Group Holding Limited.
* All rights reserved.
*
* @providesModule ReactPromise
*/
;
import Promise from 'promise/lib/es6-extensions';
import 'promise/lib/done';
/**
* Handle either fulfillment or rejection with the same callback.
*/
Promise.prototype.finally = function(onSettled) {
return this.then(onSettled, onSettled);
};
module.exports = Promise;