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