Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
complete: function () {
var focused = jsbin.panels.focused;
if (focused.id === 'html' || focused.id === 'css') {
CodeMirror.commands['emmet.expand_abbreviation_with_tab'].call(null, focused.editor);
} else if (focused.editor._hasCompletions && focused.editor._hasCompletions()) {
focused.editor._showCompletion();
} else {
CodeMirror.commands.autocomplete(focused.editor);
}
focused.editor.focus();
},
};