Skip to content

Commit e235867

Browse files
committed
buggie fix maybe?
1 parent 6f2ff1d commit e235867

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

v3/codeopticon/js/codeopticon-learner.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@
77

88
/* TODOs:
99
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-
1410
*/
1511

1612
var codeopticonSocketIO = undefined; // socket.io instance
@@ -96,7 +92,7 @@ function initCodeopticon() {
9692
}
9793

9894
while (logEventQueue.length > 0) {
99-
codeopticonSocketIO.emit('opt-client-event', logEventQueue.pop());
95+
codeopticonSocketIO.emit('opt-client-event', logEventQueue.shift() /* FIFO */);
10096
}
10197
}
10298
assert(logEventQueue.length === 0);

0 commit comments

Comments
 (0)