vendor/assets/javascripts/promise.js in es6-promise-rails-2.1.0 vs vendor/assets/javascripts/promise.js in es6-promise-rails-2.1.1
- old
+ new
@@ -1,11 +1,11 @@
/*!
* @overview es6-promise - a tiny implementation of Promises/A+.
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
* @license Licensed under MIT license
* See https://raw.githubusercontent.com/jakearchibald/es6-promise/master/LICENSE
- * @version 2.1.0
+ * @version 2.1.1
*/
(function() {
"use strict";
function lib$es6$promise$utils$$objectOrFunction(x) {
@@ -203,10 +203,10 @@
}
function lib$es6$promise$$internal$$handleOwnThenable(promise, thenable) {
if (thenable._state === lib$es6$promise$$internal$$FULFILLED) {
lib$es6$promise$$internal$$fulfill(promise, thenable._result);
- } else if (promise._state === lib$es6$promise$$internal$$REJECTED) {
+ } else if (thenable._state === lib$es6$promise$$internal$$REJECTED) {
lib$es6$promise$$internal$$reject(promise, thenable._result);
} else {
lib$es6$promise$$internal$$subscribe(thenable, undefined, function(value) {
lib$es6$promise$$internal$$resolve(promise, value);
}, function(reason) {