Index: trunk/extensions/VisualEditor/modules/es/views/es.ListItemView.js |
— | — | @@ -18,7 +18,10 @@ |
19 | 19 | this.$.addClass( 'es-listItemView' ); |
20 | 20 | |
21 | 21 | // Events |
22 | | - this.on( 'update', this.setClasses ); |
| 22 | + var _this = this; |
| 23 | + this.model.on( 'update', function() { |
| 24 | + _this.setClasses(); |
| 25 | + } ); |
23 | 26 | |
24 | 27 | // Initialization |
25 | 28 | this.setClasses(); |
Index: trunk/extensions/VisualEditor/modules/es/views/es.ListView.js |
— | — | @@ -14,7 +14,10 @@ |
15 | 15 | this.$.addClass( 'es-listView' ); |
16 | 16 | |
17 | 17 | // Events |
18 | | - this.on( 'update', this.enumerate ); |
| 18 | + var _this = this; |
| 19 | + this.model.on( 'update', function() { |
| 20 | + _this.enumerate(); |
| 21 | + } ); |
19 | 22 | |
20 | 23 | // Initialization |
21 | 24 | this.enumerate(); |
Index: trunk/extensions/VisualEditor/modules/es/views/es.HeadingView.js |
— | — | @@ -17,7 +17,10 @@ |
18 | 18 | this.$.addClass( 'es-headingView' ); |
19 | 19 | |
20 | 20 | // Events |
21 | | - this.on( 'update', this.setClasses ); |
| 21 | + var _this = this; |
| 22 | + this.model.on( 'update', function() { |
| 23 | + _this.setClasses(); |
| 24 | + } ); |
22 | 25 | |
23 | 26 | // Initialization |
24 | 27 | this.setClasses(); |