- this.data('textcompleteId', textcompleteObjects.length);
- textcompleteObjects.push(new Textcomplete(editor, options));
- }
-
- textcompleteObjects[this.data('textcompleteId')].register(strategies);
+ $this.data('textcompleteId', textcompleteObjects.length);
+ textcompleteObjects.push(new Textcomplete(editor, options));
+ }