Merge pull request #32 from wxclover/master

fixed title value is empty
This commit is contained in:
Julien Chaumond 2018-05-17 08:13:30 -04:00 committed by GitHub
commit a85b56ead0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -527,7 +527,7 @@ EPub.prototype.walkNavMap = function (branch, path, id_list, level) {
var title = '';
if (branch[i].navLabel && typeof branch[i].navLabel.text == 'string') {
title = branch[i].navLabel && branch[i].navLabel.text || branch[i].navLabel===branch[i].navLabel ?
'' : (branch[i].navLabel && branch[i].navLabel.text || branch[i].navLabel || "").trim();
(branch[i].navLabel && branch[i].navLabel.text || branch[i].navLabel || "").trim() : '';
}
var order = Number(branch[i]["@"] && branch[i]["@"].playOrder || 0);
if (isNaN(order)) {