1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-04 15:09:16 +02:00

Switch to Native Promises, add polyfills.js in dist folder

This commit is contained in:
Fred Chasen 2016-10-27 00:46:56 +02:00
parent a4e76029d4
commit 151dc97d19
28 changed files with 677 additions and 3049 deletions

View file

@ -1,5 +1,3 @@
var RSVP = require('rsvp');
//-- Hooks allow for injecting functions that must all complete in order before finishing
// They will execute in parallel but all must finish before continuing
// Functions may return a promise if they are asycn.
@ -44,7 +42,7 @@ Hook.prototype.trigger = function(){
});
return RSVP.all(promises);
return Promise.all(promises);
};
// Adds a function to be run before a hook completes