ace: fix error when getCompleter() wasn't passed

This commit is contained in:
Alexander Zobnin
2017-08-26 12:48:37 +03:00
parent 451ecce4ab
commit 54f932e960

View File

@@ -150,7 +150,7 @@ function link(scope, elem, attrs) {
enableSnippets: true
});
if (scope.getCompleter) {
if (scope.getCompleter()) {
codeEditor.completers.push(scope.getCompleter());
}
});