r113847 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r113846‎ | r113847 | r113848 >
Date:21:02, 14 March 2012
Author:catrope
Status:deferred
Tags:
Comment:
Make DocumentSynchronizer clear the queue after it's done with it
Modified paths:
  • /trunk/extensions/VisualEditor/modules/ve/dm/ve.dm.DocumentSynchronizer.js (modified) (history)

Diff [purge]

Index: trunk/extensions/VisualEditor/modules/ve/dm/ve.dm.DocumentSynchronizer.js
@@ -1,7 +1,7 @@
22 /**
33 * Creates an ve.dm.DocumentSynchronizer object.
44 *
5 - * This object is a one-time use utilitiy for collecting actions to be performed on the model tree
 5+ * This object is a utility for collecting actions to be performed on the model tree
66 * in multiple steps and then processing those actions in a single step.
77 *
88 * @class
@@ -106,4 +106,7 @@
107107 break;
108108 }
109109 }
 110+
 111+ // We've processed the queue, clear it
 112+ this.actions = [];
110113 };

Status & tagging log