r105388 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r105387‎ | r105388 | r105389 >
Date:00:06, 7 December 2011
Author:tparscal
Status:deferred
Tags:
Comment:
Update node when it's attributes are changed
Modified paths:
  • /trunk/extensions/VisualEditor/modules/es/es.TransactionProcessor.js (modified) (history)

Diff [purge]

Index: trunk/extensions/VisualEditor/modules/es/es.TransactionProcessor.js
@@ -424,6 +424,8 @@
425425 } else {
426426 throw 'Invalid method error. Can not operate attributes this way: ' + method;
427427 }
 428+ var node = this.model.getNodeFromOffset( this.cursor + 1 );
 429+ node.emit( 'update' );
428430 };
429431
430432 es.TransactionProcessor.prototype.mark = function( op, invert ) {

Status & tagging log