Commit 632d604a authored by chriseth's avatar chriseth

Merge pull request #148 from chriseth/onchange

Trigger onChange on session change.
parents fb1bfc63 85e1717f
......@@ -763,6 +763,7 @@
editor.getSession().on('change', onChange);
editor.on('changeSession', function(){
editor.getSession().on('change', onChange);
onChange();
})
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