Only call then once in prop.then.

This commit is contained in:
impinball 2015-11-26 07:49:15 -05:00
parent 42723cbeb6
commit 90701a4cbb

View file

@ -1212,8 +1212,8 @@ void (function (global, factory) { // eslint-disable-line
prop.then = function (fufill, reject) { prop.then = function (fufill, reject) {
return promise.then(function () { return promise.then(function () {
return prop() return fufill(prop())
}).then(fufill, reject) }, reject)
} }
prop.catch = function (reject) { prop.catch = function (reject) {