We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f2ff1d commit e235867Copy full SHA for e235867
1 file changed
v3/codeopticon/js/codeopticon-learner.js
@@ -7,10 +7,6 @@
7
8
/* TODOs:
9
10
-- look into whether logEventQueue is being popped in the right order or
11
- whether it's being popped backwards; if so, that's bad because that
12
- causes events to be emitted out of order, eeek!
13
-
14
*/
15
16
var codeopticonSocketIO = undefined; // socket.io instance
@@ -96,7 +92,7 @@ function initCodeopticon() {
96
92
}
97
93
98
94
while (logEventQueue.length > 0) {
99
- codeopticonSocketIO.emit('opt-client-event', logEventQueue.pop());
95
+ codeopticonSocketIO.emit('opt-client-event', logEventQueue.shift() /* FIFO */);
100
101
102
assert(logEventQueue.length === 0);
0 commit comments