| 48 | | completer: function(filter){ |
| 49 | | var completionList = new Array(); |
| 50 | | for(let name in TomblooService.Tombloo.Service.actions) |
| 51 | | if(name.indexOf(filter) > -1) |
| 52 | | completionList.push([name,name]); |
| 53 | | return [0,completionList]; |
| | 48 | completer: function(context){ |
| | 49 | context.title = ['Tombloo Actions']; |
| | 50 | context.completions = [[name,name] for(name in TomblooService.Tombloo.Service.actions)].filter(function($_){ |
| | 51 | return this.test($_[0]); |
| | 52 | }, new RegExp(context.filter, 'i')); |
| 66 | | for(let i=0,l=exts.length; i < l; i++) |
| 67 | | if(exts[i].name.indexOf(filter) > -1) |
| 68 | | completionList.push([exts[i].name,exts[i].name]); |
| 69 | | return [0,completionList]; |
| | 65 | context.title = ['Tombloo']; |
| | 66 | context.completions = [[exts[i].name, exts[i].name] for(i in exts)].filter(function($_) this.test($_[0]), new RegExp(context.filter, 'i')) |