skytnt commited on
Commit
2e2eb05
1 Parent(s): 7963005

fix handled_msgs

Browse files
Files changed (1) hide show
  1. javascript/app.js +1 -2
javascript/app.js CHANGED
@@ -424,8 +424,6 @@ customElements.define('midi-visualizer', MidiVisualizer);
424
  if(handled_msgs.indexOf(msg.uuid)!== -1)
425
  return;
426
  handled_msgs.push(msg.uuid);
427
- if(handled_msgs.length > 200)
428
- handled_msgs = handled_msgs.slice(1);
429
  switch (msg.name) {
430
  case "visualizer_clear":
431
  midi_visualizer.clearMidiEvents();
@@ -443,6 +441,7 @@ customElements.define('midi-visualizer', MidiVisualizer);
443
  midi_visualizer.finishAppendMidiEvent()
444
  midi_visualizer.setPlayTime(0);
445
  removeProgressBar(midi_visualizer_container_inited);
 
446
  break;
447
  default:
448
  }
 
424
  if(handled_msgs.indexOf(msg.uuid)!== -1)
425
  return;
426
  handled_msgs.push(msg.uuid);
 
 
427
  switch (msg.name) {
428
  case "visualizer_clear":
429
  midi_visualizer.clearMidiEvents();
 
441
  midi_visualizer.finishAppendMidiEvent()
442
  midi_visualizer.setPlayTime(0);
443
  removeProgressBar(midi_visualizer_container_inited);
444
+ handled_msgs = []
445
  break;
446
  default:
447
  }