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:
parent
a4e76029d4
commit
151dc97d19
28 changed files with 677 additions and 3049 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue