@@ -11,7 +11,7 @@ var Events = require('./events');
1111/**
1212 * @classdesc
1313 * A Process Queue maintains three internal lists.
14- *
14+ *
1515 * The `pending` list is a selection of items which are due to be made 'active' in the next update.
1616 * The `active` list is a selection of items which are considered active and should be updated.
1717 * The `destroy` list is a selection of items that were active and are awaiting being destroyed in the next update.
@@ -92,7 +92,7 @@ var ProcessQueue = new Class({
9292
9393 /**
9494 * Adds a new item to the Process Queue.
95- *
95+ *
9696 * The item is added to the pending list and made active in the next update.
9797 *
9898 * @method Phaser.Structs.ProcessQueue#add
@@ -116,7 +116,7 @@ var ProcessQueue = new Class({
116116
117117 /**
118118 * Removes an item from the Process Queue.
119- *
119+ *
120120 * The item is added to the pending destroy and fully removed in the next update.
121121 *
122122 * @method Phaser.Structs.ProcessQueue#remove
@@ -140,7 +140,7 @@ var ProcessQueue = new Class({
140140
141141 /**
142142 * Removes all active items from this Process Queue.
143- *
143+ *
144144 * All the items are marked as 'pending destroy' and fully removed in the next update.
145145 *
146146 * @method Phaser.Structs.ProcessQueue#removeAll
@@ -166,7 +166,7 @@ var ProcessQueue = new Class({
166166
167167 /**
168168 * Update this queue. First it will process any items awaiting destruction, and remove them.
169- *
169+ *
170170 * Then it will check to see if there are any items pending insertion, and move them to an
171171 * active state. Finally, it will return a list of active items for further processing.
172172 *
@@ -202,7 +202,7 @@ var ProcessQueue = new Class({
202202 {
203203 active . splice ( idx , 1 ) ;
204204
205- this . emit ( Events . REMOVE , item ) ;
205+ this . emit ( Events . PROCESS_QUEUE_REMOVE , item ) ;
206206 }
207207 }
208208
@@ -219,7 +219,7 @@ var ProcessQueue = new Class({
219219
220220 this . _active . push ( item ) ;
221221
222- this . emit ( Events . ADD , item ) ;
222+ this . emit ( Events . PROCESS_QUEUE_ADD , item ) ;
223223 }
224224
225225 list . length = 0 ;
@@ -232,7 +232,7 @@ var ProcessQueue = new Class({
232232
233233 /**
234234 * Returns the current list of active items.
235- *
235+ *
236236 * This method returns a reference to the active list array, not a copy of it.
237237 * Therefore, be careful to not modify this array outside of the ProcessQueue.
238238 *
0 commit comments