Index: trunk/extensions/VisualEditor/modules/es/bases/es.DocumentViewBranchNode.js |
— | — | @@ -48,8 +48,10 @@ |
49 | 49 | this.children.push( childView ); |
50 | 50 | // Update DOM |
51 | 51 | this.$.append( childView.$ ); |
| 52 | + // TODO: adding and deleting classes has to be implemented for unshift, shift, splice, sort |
| 53 | + // and reverse as well |
52 | 54 | if ( this.children.length === 1 ) { |
53 | | - childView.$.addClass('es-ViewBranchNode-firstChild'); |
| 55 | + childView.$.addClass('es-viewBranchNode-firstChild'); |
54 | 56 | } |
55 | 57 | this.emit( 'afterPush', childView ); |
56 | 58 | this.emit( 'update' ); |