Index: trunk/parsers/wikidom/lib/es/es.ParagraphBlock.js |
— | — | @@ -12,7 +12,7 @@ |
13 | 13 | this.updateText(); |
14 | 14 | } |
15 | 15 | |
16 | | -Block.prototype.updateText = function() { |
| 16 | +ParagraphBlock.prototype.updateText = function() { |
17 | 17 | var text = []; |
18 | 18 | for ( var i = 0; i < this.lines.length; i++ ) { |
19 | 19 | text.push( this.lines[i].text ); |
— | — | @@ -26,7 +26,7 @@ |
27 | 27 | * @param offset {Integer} Position to insert content at |
28 | 28 | * @param content {Object} Content to insert |
29 | 29 | */ |
30 | | -Block.prototype.insertContent = function( offset, content ) { |
| 30 | +ParagraphBlock.prototype.insertContent = function( offset, content ) { |
31 | 31 | var lineOffset = 0; |
32 | 32 | for ( var i = 0; i < this.lines.length; i++ ) { |
33 | 33 | if ( this.lines[i].text.length < offset - lineOffset ) { |
— | — | @@ -46,7 +46,7 @@ |
47 | 47 | * @param offset {Integer} Position to start removing content from |
48 | 48 | * @param length {Integer} Length of content to remove |
49 | 49 | */ |
50 | | -Block.prototype.deleteContent = function( offset, length ) { |
| 50 | +ParagraphBlock.prototype.deleteContent = function( offset, length ) { |
51 | 51 | var start, |
52 | 52 | end, |
53 | 53 | from, |
— | — | @@ -91,7 +91,7 @@ |
92 | 92 | * |
93 | 93 | * @param $container {jQuery Selection} Container to render into |
94 | 94 | */ |
95 | | -Block.prototype.renderContent = function() { |
| 95 | +ParagraphBlock.prototype.renderContent = function() { |
96 | 96 | this.flow.render(); |
97 | 97 | }; |
98 | 98 | |
— | — | @@ -100,8 +100,8 @@ |
101 | 101 | * |
102 | 102 | * @param position {Position} Position to translate |
103 | 103 | */ |
104 | | -Block.prototype.getLocation = function( position ) { |
105 | | - throw 'Block.getLocation not implemented in this subclass.'; |
| 104 | +ParagraphBlock.prototype.getLocation = function( position ) { |
| 105 | + throw 'ParagraphBlock.getLocation not implemented in this subclass.'; |
106 | 106 | }; |
107 | 107 | |
108 | 108 | /** |
— | — | @@ -109,8 +109,8 @@ |
110 | 110 | * |
111 | 111 | * @param location {Location} Location to translate |
112 | 112 | */ |
113 | | -Block.prototype.getPosition = function( location ) { |
114 | | - throw 'Block.getPosition not implemented in this subclass.'; |
| 113 | +ParagraphBlock.prototype.getPosition = function( location ) { |
| 114 | + throw 'ParagraphBlock.getPosition not implemented in this subclass.'; |
115 | 115 | }; |
116 | 116 | |
117 | 117 | extend( ParagraphBlock, Block ); |