Make DocumentSynchronizer clear the queue after it's done with it

This commit is contained in:
Roan Kattouw 2012-03-14 21:02:24 +00:00
parent 7e22020398
commit 7dd2b8b725
Notes: Roan Kattouw 2012-03-14 21:02:24 +00:00

View file

@ -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 = [];
};