minor code review

This commit is contained in:
gorhill 2017-06-22 14:36:45 -04:00
parent ca45ade4c5
commit d337abe504
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -1232,7 +1232,7 @@ vAPI.domCollapser = (function() {
if ( node.localName === 'iframe' ) {
addIFrame(node);
}
if ( node.childElementCount > 0 ) {
if ( node.childElementCount !== 0 ) {
var iframes = node.getElementsByTagName('iframe');
if ( iframes.length !== 0 ) {
addIFrames(iframes);