Don't fail if hook returns nothing for "page" and "page:before"

This commit is contained in:
Samy Pessé
2015-08-27 15:04:28 +02:00
parent a4422593f2
commit cefd8fc50f
+1 -1
View File
@@ -512,7 +512,7 @@ Book.prototype.parsePage = function(filename, options) {
var interpolate = function(fn) {
return Q(fn(page))
.then(function(_page) {
page = _page;
page = _page || page;
});
};