less java:)
This commit is contained in:
parent
28b95df12c
commit
38ce8b8919
1 changed files with 2 additions and 7 deletions
|
|
@ -67,17 +67,12 @@ var snippetCompleter = {
|
|||
}
|
||||
};
|
||||
|
||||
var completers = [snippetCompleter, textCompleter, keyWordCompleter];
|
||||
// Allows default completers to be removed or replaced with a explict set of completers
|
||||
// A null argument here will result in an empty completer array, not a null attribute
|
||||
exports.setCompleters = function(val) {
|
||||
if (val == null || val == undefined || (!(val instanceof Array)) ) {
|
||||
completers = [];
|
||||
} else {
|
||||
completers = val;
|
||||
}
|
||||
completers = val || [];
|
||||
};
|
||||
|
||||
var completers = [snippetCompleter, textCompleter, keyWordCompleter];
|
||||
exports.addCompleter = function(completer) {
|
||||
completers.push(completer);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue