even cleaner

This commit is contained in:
John McLear 2015-01-26 02:39:43 +00:00
parent 18121a1507
commit c4f1189ebd

View file

@ -459,7 +459,6 @@ function makeContentCollector(collectStyles, abrowser, apool, domInterface, clas
{ {
var tname = (dom.nodeTagName(node) || "").toLowerCase(); var tname = (dom.nodeTagName(node) || "").toLowerCase();
// Images shouldn't be defined as empty.
if (tname == "img"){ if (tname == "img"){
var context = hooks.callAll('collectContentImage', { var context = hooks.callAll('collectContentImage', {
cc: cc, cc: cc,
@ -470,8 +469,7 @@ function makeContentCollector(collectStyles, abrowser, apool, domInterface, clas
node: node node: node
}); });
} }
else if (tname == "br")
if (tname == "br")
{ {
this.breakLine = true; this.breakLine = true;
var tvalue = dom.nodeAttr(node, 'value'); var tvalue = dom.nodeAttr(node, 'value');