diff --git a/lib/generators/ebook.js b/lib/generators/ebook.js index 09215c499..3063e8377 100644 --- a/lib/generators/ebook.js +++ b/lib/generators/ebook.js @@ -44,10 +44,11 @@ Generator.prototype.writeSummary = function() { Generator.prototype.finish = function() { var that = this; - return BaseGenerator.prototype.finish.apply(this) - .then(function() { - return that.writeSummary(); - }) + return Q() + .then(this.copyAssets) + .then(this.copyCover) + .then(this.writeGlossary) + .then(this.writeSummary) .then(function() { if (!that.ebookFormat) return Q();