Index: trunk/parsers/wikidom/lib/hype/models/es.DocumentModel.js |
— | — | @@ -74,16 +74,6 @@ |
75 | 75 | /* Methods */ |
76 | 76 | |
77 | 77 | /** |
78 | | - * Gets the length of all document content. |
79 | | - * |
80 | | - * @method |
81 | | - * @returns {Integer} Length of document content |
82 | | - */ |
83 | | -es.DocumentModel.getContentLength = function() { |
84 | | - return this.data.length; |
85 | | -}; |
86 | | - |
87 | | -/** |
88 | 78 | * Gets copy of the document data. |
89 | 79 | * |
90 | 80 | * @method |
— | — | @@ -122,7 +112,7 @@ |
123 | 113 | return offset; |
124 | 114 | } |
125 | 115 | if ( deep && node.length ) { |
126 | | - var length = this.findElement( node, deep, node ); |
| 116 | + var length = this.offsetOf( node, deep, node ); |
127 | 117 | if ( length !== null ) { |
128 | 118 | return offset + length; |
129 | 119 | } |