Update child leaf nodes on attribute change, not the parent

This commit is contained in:
Trevor Parscal 2011-12-09 21:00:56 +00:00
parent ec2bf0b1ce
commit f09e6e7303

View file

@ -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 ) {