Browse Source

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

Alexander Zobnin 8 years ago
parent
commit
54f932e960
1 changed files with 1 additions and 1 deletions
  1. 1 1
      public/app/core/components/code_editor/code_editor.ts

+ 1 - 1
public/app/core/components/code_editor/code_editor.ts

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