Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect example code on main page #295

Closed
prostynick opened this issue Dec 13, 2016 · 1 comment
Closed

Incorrect example code on main page #295

prostynick opened this issue Dec 13, 2016 · 1 comment
Labels
DEPRECATED jquery-textcomplete Issues associated to jquery-textcomplete (was DEPRECATED)

Comments

@prostynick
Copy link

The code on main page in "Synopsis" section is incorrect. There's no "index: 1" defined, so the code doesn't work.

@dperel
Copy link

dperel commented Jan 12, 2017

I found that the line below from that example was not setting the word variable in the ternary statement.
return word.indexOf(term) === 0 ? word : null;
It needs to be
word = word.indexOf(term) === 0 ? word : null;
in order for it to work properly.

Minor issue aside this is a great library. Thanks!

@yuku yuku closed this as completed Jun 15, 2020
@yuku yuku added the DEPRECATED jquery-textcomplete Issues associated to jquery-textcomplete (was DEPRECATED) label Jun 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DEPRECATED jquery-textcomplete Issues associated to jquery-textcomplete (was DEPRECATED)
Projects
None yet
Development

No branches or pull requests

3 participants