Update language_tools.js

Added removeCompleters() function to language tools exports as it is not possible to access the completers array directly.

This is currently utilized by Ace GWT to cleardown existing completers (for entirely programmatic completers without snippets or  keyword completions) but I feel it belongs in the mainline (I have to manage a fork at the moment and there seems to be no other workaround).
This commit is contained in:
takapa 2014-09-30 19:55:06 +01:00
commit 9b8385b07d

View file

@ -67,6 +67,10 @@ var snippetCompleter = {
}
};
exports.removeCompleters = function() {
completers = [];
};
var completers = [snippetCompleter, textCompleter, keyWordCompleter];
exports.addCompleter = function(completer) {
completers.push(completer);