Index: trunk/parsers/wikidom/lib/es/es.ParagraphBlock.js |
— | — | @@ -9,8 +9,6 @@ |
10 | 10 | this.$ = $( '<div class="editSurface-block editSurface-paragraph"></div>' ) |
11 | 11 | .data( 'block', this ); |
12 | 12 | this.flow = new TextFlow( this.$, this.content ); |
13 | | - this.rendering = false; |
14 | | - this.reRender = false; |
15 | 13 | } |
16 | 14 | |
17 | 15 | Block.prototype.getLength = function() { |
— | — | @@ -25,7 +23,7 @@ |
26 | 24 | */ |
27 | 25 | ParagraphBlock.prototype.insertContent = function( offset, content ) { |
28 | 26 | this.content.insert( offset, content ); |
29 | | - this.renderContent(); |
| 27 | + this.flow.render(); |
30 | 28 | }; |
31 | 29 | |
32 | 30 | /** |
— | — | @@ -42,7 +40,7 @@ |
43 | 41 | start = tmp; |
44 | 42 | } |
45 | 43 | this.content.remove( start, end ); |
46 | | - this.renderContent(); |
| 44 | + this.flow.render(); |
47 | 45 | }; |
48 | 46 | |
49 | 47 | /** |
— | — | @@ -51,20 +49,7 @@ |
52 | 50 | * @param $container {jQuery Selection} Container to render into |
53 | 51 | */ |
54 | 52 | ParagraphBlock.prototype.renderContent = function() { |
55 | | - if ( !this.rendering ) { |
56 | | - this.rendering = true; |
57 | | - var block = this; |
58 | | - this.flow.render( 0, function() { |
59 | | - block.rendering = false; |
60 | | - var reRender = block.reRender; |
61 | | - block.reRender = false; |
62 | | - if ( reRender ) { |
63 | | - block.renderContent(); |
64 | | - } |
65 | | - }); |
66 | | - } else { |
67 | | - this.reRender = true; |
68 | | - } |
| 53 | + this.flow.render(); |
69 | 54 | }; |
70 | 55 | |
71 | 56 | /** |