Index: trunk/parsers/wikidom/lib/hype/bases/es.DocumentModelNode.js |
— | — | @@ -31,9 +31,9 @@ |
32 | 32 | } else { |
33 | 33 | node.contentLength = 0; |
34 | 34 | // If contents was an array, some items were added, which we need to account for |
35 | | - if ( this.length ) { |
36 | | - for ( var i = 0; i < this.length; i++ ) { |
37 | | - node.contentLength += this[i].getElementLength(); |
| 35 | + if ( node.length ) { |
| 36 | + for ( var i = 0; i < node.length; i++ ) { |
| 37 | + node.contentLength += node[i].getElementLength(); |
38 | 38 | } |
39 | 39 | } |
40 | 40 | } |