From 955aae36d4ebb49fac2c0a7fea4addf8981cce46 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Fri, 15 Jan 2016 14:29:14 -0500 Subject: [PATCH] feature(bower) promise-polyfill v3.1.0 --- bower.json | 2 +- modules/promise-polyfill/.bower.json | 10 +++++----- modules/promise-polyfill/Promise.js | 4 ++-- modules/promise-polyfill/Promise.min.js | 4 ++-- modules/promise-polyfill/package.json | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/bower.json b/bower.json index 5a05eb30..e74a12ad 100644 --- a/bower.json +++ b/bower.json @@ -40,6 +40,6 @@ "findit": "~1.1.4", "philip": "~1.3.2", "smalltalk": "~1.6.5", - "promise-polyfill": "~3.0.0" + "promise-polyfill": "~3.1.0" } } diff --git a/modules/promise-polyfill/.bower.json b/modules/promise-polyfill/.bower.json index e4624c3a..2df0a0fd 100644 --- a/modules/promise-polyfill/.bower.json +++ b/modules/promise-polyfill/.bower.json @@ -1,6 +1,6 @@ { "name": "promise-polyfill", - "version": "3.0.0", + "version": "3.1.0", "homepage": "https://github.com/taylorhakes/promise-polyfill", "authors": [ "Taylor Hakes" @@ -25,14 +25,14 @@ "test", "tests" ], - "_release": "3.0.0", + "_release": "3.1.0", "_resolution": { "type": "version", - "tag": "3.0.0", - "commit": "edce456da7e95a9a536bfebcbd98f0e109a653d4" + "tag": "3.1.0", + "commit": "3be107ebf982fc087f2ddadb2c440d4b15b9d0b8" }, "_source": "git://github.com/taylorhakes/promise-polyfill.git", - "_target": "~3.0.0", + "_target": "~3.1.0", "_originalSource": "promise-polyfill", "_direct": true } \ No newline at end of file diff --git a/modules/promise-polyfill/Promise.js b/modules/promise-polyfill/Promise.js index 7d1eb784..3a95fe8d 100644 --- a/modules/promise-polyfill/Promise.js +++ b/modules/promise-polyfill/Promise.js @@ -2,11 +2,11 @@ // Store setTimeout reference so promise-polyfill will be unaffected by // other code modifying setTimeout (like sinon.useFakeTimers()) - var setTimeout = setTimeout; + var setTimeoutFunc = setTimeout; // Use polyfill for setImmediate for performance gains var asap = (typeof setImmediate === 'function' && setImmediate) || - function(fn) { setTimeout(fn, 1); }; + function(fn) { setTimeoutFunc(fn, 1); }; // Polyfill for Function.prototype.bind function bind(fn, thisArg) { diff --git a/modules/promise-polyfill/Promise.min.js b/modules/promise-polyfill/Promise.min.js index c1e22fef..74c42508 100644 --- a/modules/promise-polyfill/Promise.min.js +++ b/modules/promise-polyfill/Promise.min.js @@ -1,2 +1,2 @@ -/*! promise-polyfill 2.1.3 */ -!function(a){function b(a,b){return function(){a.apply(b,arguments)}}function c(a){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof a)throw new TypeError("not a function");this._state=null,this._value=null,this._deferreds=[],i(a,b(e,this),b(f,this))}function d(a){var b=this;return null===this._state?void this._deferreds.push(a):void k(function(){var c=b._state?a.onFulfilled:a.onRejected;if(null===c)return void(b._state?a.resolve:a.reject)(b._value);var d;try{d=c(b._value)}catch(e){return void a.reject(e)}a.resolve(d)})}function e(a){try{if(a===this)throw new TypeError("A promise cannot be resolved with itself.");if(a&&("object"==typeof a||"function"==typeof a)){var c=a.then;if("function"==typeof c)return void i(b(c,a),b(e,this),b(f,this))}this._state=!0,this._value=a,g.call(this)}catch(d){f.call(this,d)}}function f(a){this._state=!1,this._value=a,g.call(this)}function g(){for(var a=0,b=this._deferreds.length;b>a;a++)d.call(this,this._deferreds[a]);this._deferreds=null}function h(a,b,c,d){this.onFulfilled="function"==typeof a?a:null,this.onRejected="function"==typeof b?b:null,this.resolve=c,this.reject=d}function i(a,b,c){var d=!1;try{a(function(a){d||(d=!0,b(a))},function(a){d||(d=!0,c(a))})}catch(e){if(d)return;d=!0,c(e)}}var j=j,k="function"==typeof setImmediate&&setImmediate||function(a){j(a,1)},l=Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)};c.prototype["catch"]=function(a){return this.then(null,a)},c.prototype.then=function(a,b){var e=this;return new c(function(c,f){d.call(e,new h(a,b,c,f))})},c.all=function(){var a=Array.prototype.slice.call(1===arguments.length&&l(arguments[0])?arguments[0]:arguments);return new c(function(b,c){function d(f,g){try{if(g&&("object"==typeof g||"function"==typeof g)){var h=g.then;if("function"==typeof h)return void h.call(g,function(a){d(f,a)},c)}a[f]=g,0===--e&&b(a)}catch(i){c(i)}}if(0===a.length)return b([]);for(var e=a.length,f=0;fd;d++)a[d].then(b,c)})},c._setImmediateFn=function(a){k=a},"undefined"!=typeof module&&module.exports?module.exports=c:a.Promise||(a.Promise=c)}(this); \ No newline at end of file +/*! promise-polyfill 3.1.0 */ +!function(a){function b(a,b){return function(){a.apply(b,arguments)}}function c(a){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof a)throw new TypeError("not a function");this._state=null,this._value=null,this._deferreds=[],i(a,b(e,this),b(f,this))}function d(a){var b=this;return null===this._state?void this._deferreds.push(a):void k(function(){var c=b._state?a.onFulfilled:a.onRejected;if(null===c)return void(b._state?a.resolve:a.reject)(b._value);var d;try{d=c(b._value)}catch(e){return void a.reject(e)}a.resolve(d)})}function e(a){try{if(a===this)throw new TypeError("A promise cannot be resolved with itself.");if(a&&("object"==typeof a||"function"==typeof a)){var c=a.then;if("function"==typeof c)return void i(b(c,a),b(e,this),b(f,this))}this._state=!0,this._value=a,g.call(this)}catch(d){f.call(this,d)}}function f(a){this._state=!1,this._value=a,g.call(this)}function g(){for(var a=0,b=this._deferreds.length;b>a;a++)d.call(this,this._deferreds[a]);this._deferreds=null}function h(a,b,c,d){this.onFulfilled="function"==typeof a?a:null,this.onRejected="function"==typeof b?b:null,this.resolve=c,this.reject=d}function i(a,b,c){var d=!1;try{a(function(a){d||(d=!0,b(a))},function(a){d||(d=!0,c(a))})}catch(e){if(d)return;d=!0,c(e)}}var j=setTimeout,k="function"==typeof setImmediate&&setImmediate||function(a){j(a,1)},l=Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)};c.prototype["catch"]=function(a){return this.then(null,a)},c.prototype.then=function(a,b){var e=this;return new c(function(c,f){d.call(e,new h(a,b,c,f))})},c.all=function(){var a=Array.prototype.slice.call(1===arguments.length&&l(arguments[0])?arguments[0]:arguments);return new c(function(b,c){function d(f,g){try{if(g&&("object"==typeof g||"function"==typeof g)){var h=g.then;if("function"==typeof h)return void h.call(g,function(a){d(f,a)},c)}a[f]=g,0===--e&&b(a)}catch(i){c(i)}}if(0===a.length)return b([]);for(var e=a.length,f=0;fd;d++)a[d].then(b,c)})},c._setImmediateFn=function(a){k=a},"undefined"!=typeof module&&module.exports?module.exports=c:a.Promise||(a.Promise=c)}(this); \ No newline at end of file diff --git a/modules/promise-polyfill/package.json b/modules/promise-polyfill/package.json index 4415b8ed..02f5dac8 100644 --- a/modules/promise-polyfill/package.json +++ b/modules/promise-polyfill/package.json @@ -1,6 +1,6 @@ { "name": "promise-polyfill", - "version": "3.0.0", + "version": "3.1.0", "description": "Lightweight promise polyfill. A+ compliant", "main": "Promise.js", "scripts": {