mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 06:46:26 +00:00
Fix issue in 7673a398
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:
parent
825322d4ac
commit
c772431927
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue