Fix error when plugin don't extend book

This commit is contained in:
Samy Pessé
2014-06-02 12:51:22 +02:00
parent c0ae0138f8
commit 58eaaf5514
+1
View File
@@ -163,6 +163,7 @@ Plugin.fromList = function(names, root) {
resources.html = {}
_.each(plugins, function(plugin) {
if (!plugin.infos.book || !plugin.infos.book.html) return;
var html = plugin.infos.book.html || {};
_.each(html, function(code, key) {
if (!_.isFunction(code)) code = _.constant(code);