Fixes duplication bug in Firefox

This commit is contained in:
terakilobyte
2015-05-27 13:39:37 -04:00
parent 153735de79
commit cad39e1b5e

View File

@ -60,7 +60,7 @@ var otherTestsForNow = "<script src='/js/lib/coursewares/iFrameScripts_0.0.2.js'
var delay;
// Initialize CodeMirror editor with a nice html5 canvas demo.
editor.on("change", function () {
editor.on("keypress", function () {
clearTimeout(delay);
delay = setTimeout(updatePreview, 300);
});