The update event passes in a transaction object, which was interpreted
as a config object and fragmented the cache. Explicitly wrap the
update() call in an event handler to make sure the config parameter is
undefined.

Change-Id: I641c68230b92d23626fb8b12aeab6a8904a35bcc
This commit is contained in:
Roan Kattouw 2013-08-15 16:32:41 -07:00
parent 825322d4ac
commit c772431927

View file

@ -22,7 +22,7 @@ ve.ce.GeneratedContentNode = function VeCeGeneratedContentNode() {
this.$.attr( 'contenteditable', false );
// Events
this.model.connect( this, { 'update': 'update' } );
this.model.connect( this, { 'update': 'onGeneratedContentNodeUpdate' } );
// Initialization
this.update();
@ -71,6 +71,13 @@ ve.ce.GeneratedContentNode.prototype.generateContents = function () {
/* Methods */
/**
* Handler for the update event
*/
ve.ce.GeneratedContentNode.prototype.onGeneratedContentNodeUpdate = function () {
this.update();
};
/**
* Rerender the contents of this node.
*