1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-03 14:59:18 +02:00

Fixed lint errors

This commit is contained in:
fchasen 2015-06-22 23:12:49 -04:00
parent 82fb23daab
commit 2a387cc433
12 changed files with 3978 additions and 3974 deletions

View file

@ -237,14 +237,14 @@ EPUBJS.Rendition.prototype.render = function(view, show) {
return this.hooks.layout.trigger(view, this);
}.bind(this))
.then(function(){
return view.display()
return view.display();
}.bind(this))
.then(function(){
return this.hooks.render.trigger(view, this);
}.bind(this))
.then(function(){
if(show != false && this.hidden === false) {
if(show !== false && this.hidden === false) {
this.q.enqueue(function(view){
view.show();
}, view);
@ -516,7 +516,7 @@ EPUBJS.Rendition.prototype.visible = function(){
visible.push(view);
}
};
}
return visible;
@ -542,7 +542,7 @@ EPUBJS.Rendition.prototype.displayed = function(){
if(view.displayed){
displayed.push(view);
}
};
}
return displayed;
};
@ -553,7 +553,7 @@ EPUBJS.Rendition.prototype.show = function(){
if(view.displayed){
view.show();
}
};
}
this.hidden = false;
};
@ -564,7 +564,7 @@ EPUBJS.Rendition.prototype.hide = function(){
if(view.displayed){
view.hide();
}
};
}
this.hidden = true;
};