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,4 +1,3 @@
var RSVP = require('rsvp');
var EventEmitter = require('event-emitter');
var core = require('../../core');
var EpubCFI = require('../../epubcfi');
@ -140,7 +139,7 @@ DefaultViewManager.prototype.createView = function(section) {
DefaultViewManager.prototype.display = function(section, target){
var displaying = new RSVP.defer();
var displaying = new core.defer();
var displayed = displaying.promise;
// Check to make sure the section we want isn't already shown