Bind to keyup events if editor is present

This commit is contained in:
Berkeley Martinez
2015-11-24 14:27:32 -08:00
parent 9532a80f26
commit 2610573871

View File

@@ -7,6 +7,7 @@ $(document).ready(function() {
init($);
});
if (common.editor.getValue) {
const code$ = common.editorKeyUp$
.debounce(750)
.map(() => common.editor.getValue())
@@ -43,6 +44,7 @@ $(document).ready(function() {
},
err => console.error(err)
);
}
common.resetBtn$
.doOnNext(() => {