mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
Update child leaf nodes on attribute change, not the parent
This commit is contained in:
parent
ec2bf0b1ce
commit
f09e6e7303
|
@ -446,7 +446,9 @@ es.TransactionProcessor.prototype.attribute = function( op, invert ) {
|
|||
throw 'Invalid method error. Can not operate attributes this way: ' + method;
|
||||
}
|
||||
var node = this.model.getNodeFromOffset( this.cursor + 1 );
|
||||
node.emit( 'update' );
|
||||
node.traverseLeafNodes( function( leafNode ) {
|
||||
leafNode.emit( 'update' );
|
||||
} );
|
||||
};
|
||||
|
||||
es.TransactionProcessor.prototype.mark = function( op, invert ) {
|
||||
|
|
Loading…
Reference in a new issue