r103274 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r103273‎ | r103274 | r103275 >
Date:00:24, 16 November 2011
Author:tparscal
Status:ok
Tags:
Comment:
Made leaf nodes listen for updates from their content views and emit updates themselves in response.
Modified paths:
  • /trunk/extensions/VisualEditor/modules/es/bases/es.DocumentViewLeafNode.js (modified) (history)

Diff [purge]

Index: trunk/extensions/VisualEditor/modules/es/bases/es.DocumentViewLeafNode.js
@@ -17,6 +17,9 @@
1818 // Properties
1919 this.$content = $( '<div class="es-contentView"></div>' ).appendTo( this.$ );
2020 this.contentView = new es.ContentView( this.$content, model );
 21+
 22+ // Events
 23+ this.contentView.on( 'update', this.emitUpdate );
2124 };
2225
2326 /* Methods */

Status & tagging log