Browse Source

* promise.then

master
RubaXa 10 years ago
parent
commit
58d4dd577f
  1. 4
      Ply.min.js
  2. 2
      package.json
  3. 2
      src/Ply.es6
  4. 4
      src/promise.es6

4
Ply.min.js vendored

File diff suppressed because one or more lines are too long

2
package.json

@ -1,7 +1,7 @@
{ {
"name": "ply", "name": "ply",
"exportName": "Ply", "exportName": "Ply",
"version": "0.6.0", "version": "0.6.1",
"devDependencies": { "devDependencies": {
"grunt": "*", "grunt": "*",
"grunt-contrib-watch": "*", "grunt-contrib-watch": "*",

2
src/Ply.es6

@ -788,7 +788,7 @@
}; };
Ply.version = '0.6.0'; Ply.version = '0.6.1';
return Ply; return Ply;
}); });

4
src/promise.es6

@ -78,8 +78,8 @@ if (NativePromise && !__promise__.always) {
Promise.prototype = Object.create(NativePromise.prototype); Promise.prototype = Object.create(NativePromise.prototype);
Promise.prototype.constructor = Promise; Promise.prototype.constructor = Promise;
Promise.prototype.then = function (callback) { Promise.prototype.then = function (doneFn, failFn) {
var promise = NativePromise.prototype.then.call(this, callback); var promise = NativePromise.prototype.then.call(this, doneFn, failFn);
promise.__proto__ = this.__proto__; // for FireFox promise.__proto__ = this.__proto__; // for FireFox
return promise; return promise;
}; };

Loading…
Cancel
Save