Commit 85e1717f authored by chriseth's avatar chriseth

Trigger onChange on session change.

parent fb1bfc63
...@@ -763,6 +763,7 @@ ...@@ -763,6 +763,7 @@
editor.getSession().on('change', onChange); editor.getSession().on('change', onChange);
editor.on('changeSession', function(){ editor.on('changeSession', function(){
editor.getSession().on('change', onChange); editor.getSession().on('change', onChange);
onChange();
}) })
document.querySelector('#optimize').addEventListener('change', function(){ document.querySelector('#optimize').addEventListener('change', function(){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment