https://www.mediawiki.org/wiki/Special:Code/MediaWiki/113847
Revision: 113847
Author: catrope
Date: 2012-03-14 21:02:24 +0000 (Wed, 14 Mar 2012)
Log Message:
-----------
Make DocumentSynchronizer clear the queue after it's done with it
Modified Paths:
--------------
trunk/extensions/VisualEditor/modules/ve/dm/ve.dm.DocumentSynchronizer.js
Modified:
trunk/extensions/VisualEditor/modules/ve/dm/ve.dm.DocumentSynchronizer.js
===================================================================
--- trunk/extensions/VisualEditor/modules/ve/dm/ve.dm.DocumentSynchronizer.js
2012-03-14 20:55:01 UTC (rev 113846)
+++ trunk/extensions/VisualEditor/modules/ve/dm/ve.dm.DocumentSynchronizer.js
2012-03-14 21:02:24 UTC (rev 113847)
@@ -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 @@
break;
}
}
+
+ // We've processed the queue, clear it
+ this.actions = [];
};
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs