vendor/assets/javascripts/es6-promise.js in es6-promise-rails-2.0.2 vs vendor/assets/javascripts/es6-promise.js in es6-promise-rails-2.0.2.1
- old
+ new
@@ -632,17 +632,15 @@
});
```
@class Promise
@param {function} resolver
- @param {String} label optional string for labeling the promise.
Useful for tooling.
@constructor
*/
- function $$es6$promise$promise$$Promise(resolver, label) {
+ function $$es6$promise$promise$$Promise(resolver) {
this._id = $$es6$promise$promise$$counter++;
- this._label = label;
this._state = undefined;
this._result = undefined;
this._subscribers = [];
if ($$$internal$$noop !== resolver) {
@@ -854,25 +852,22 @@
```
@method then
@param {Function} onFulfilled
@param {Function} onRejected
- @param {String} label optional string for labeling the promise.
Useful for tooling.
@return {Promise}
*/
- then: function(onFulfillment, onRejection, label) {
+ then: function(onFulfillment, onRejection) {
var parent = this;
var state = parent._state;
if (state === $$$internal$$FULFILLED && !onFulfillment || state === $$$internal$$REJECTED && !onRejection) {
return this;
}
- parent._onerror = null;
-
- var child = new this.constructor($$$internal$$noop, label);
+ var child = new this.constructor($$$internal$$noop);
var result = parent._result;
if (state) {
var callback = arguments[state - 1];
$$asap$$default(function(){
@@ -907,16 +902,15 @@
});
```
@method catch
@param {Function} onRejection
- @param {String} label optional string for labeling the promise.
Useful for tooling.
@return {Promise}
*/
- 'catch': function(onRejection, label) {
- return this.then(null, onRejection, label);
+ 'catch': function(onRejection) {
+ return this.then(null, onRejection);
}
};
var $$es6$promise$polyfill$$default = function polyfill() {
var local;
@@ -949,11 +943,11 @@
local.Promise = $$es6$promise$promise$$default;
}
};
var es6$promise$umd$$ES6Promise = {
- Promise: $$es6$promise$promise$$default,
- polyfill: $$es6$promise$polyfill$$default
+ 'Promise': $$es6$promise$promise$$default,
+ 'polyfill': $$es6$promise$polyfill$$default
};
/* global define:true module:true window: true */
if (typeof define === 'function' && define['amd']) {
define(function() { return es6$promise$umd$$ES6Promise; });