mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
Make DocumentSynchronizer clear the queue after it's done with it
This commit is contained in:
parent
7e22020398
commit
7dd2b8b725
Notes:
Roan Kattouw
2012-03-14 21:02:24 +00:00
|
@ -1,7 +1,7 @@
|
|||
/**
|
||||
* Creates an ve.dm.DocumentSynchronizer object.
|
||||
*
|
||||
* This object is a one-time use utilitiy for collecting actions to be performed on the model tree
|
||||
* This object is a utility for collecting actions to be performed on the model tree
|
||||
* in multiple steps and then processing those actions in a single step.
|
||||
*
|
||||
* @class
|
||||
|
@ -106,4 +106,7 @@ ve.dm.DocumentSynchronizer.prototype.synchronize = function() {
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// We've processed the queue, clear it
|
||||
this.actions = [];
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue