Index: trunk/extensions/VisualEditor/modules/es/bases/es.DocumentViewBranchNode.js |
— | — | @@ -69,7 +69,7 @@ |
70 | 70 | this.$.prepend( childView.$ ); |
71 | 71 | this.emit( 'afterUnshift', childView ); |
72 | 72 | this.emit( 'update' ); |
73 | | - this.renderContent(); |
| 73 | + childView.renderContent(); |
74 | 74 | }; |
75 | 75 | |
76 | 76 | es.DocumentViewBranchNode.prototype.onAfterPop = function() { |
— | — | @@ -82,7 +82,7 @@ |
83 | 83 | childView.$.detach(); |
84 | 84 | this.emit( 'afterPop' ); |
85 | 85 | this.emit( 'update' ); |
86 | | - this.renderContent(); |
| 86 | + childView.renderContent(); |
87 | 87 | }; |
88 | 88 | |
89 | 89 | es.DocumentViewBranchNode.prototype.onAfterShift = function() { |
— | — | @@ -95,7 +95,7 @@ |
96 | 96 | childView.$.detach(); |
97 | 97 | this.emit( 'afterShift' ); |
98 | 98 | this.emit( 'update' ); |
99 | | - this.renderContent(); |
| 99 | + childView.renderContent(); |
100 | 100 | }; |
101 | 101 | |
102 | 102 | es.DocumentViewBranchNode.prototype.onAfterSplice = function( index, howmany ) { |
— | — | @@ -132,7 +132,11 @@ |
133 | 133 | } |
134 | 134 | } |
135 | 135 | this.emit.apply( this, ['afterSplice'].concat( args ) ); |
136 | | - this.renderContent(); |
| 136 | + if ( args.length >= 3 ) { |
| 137 | + for ( i = 2, length = args.length; i < length; i++ ) { |
| 138 | + args[i] = args[i].renderContent(); |
| 139 | + } |
| 140 | + } |
137 | 141 | }; |
138 | 142 | |
139 | 143 | es.DocumentViewBranchNode.prototype.onAfterSort = function() { |