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

change the length of data in response #1240

Open
ckrad opened this issue May 14, 2015 · 2 comments
Open

change the length of data in response #1240

ckrad opened this issue May 14, 2015 · 2 comments

Comments

@ckrad
Copy link

ckrad commented May 14, 2015

when i append data into response, i always cant get the result what i want.
and i read source find this

function async(suggestions) {
        suggestions = suggestions || [];

        // if the update has been canceled or if the query has changed
        // do not render the suggestions as they've become outdated
        if (!canceled && rendered < that.limit) {
          that.cancel = $.noop;
          rendered += suggestions.length;
          that._append(query, suggestions.slice(0, that.limit - rendered));

if suggestions.length = 5 and limit = 5 it will render nothing

@ckrad
Copy link
Author

ckrad commented May 14, 2015

i found this

this.highlight = !!o.highlight;
this.name = o.name || nameGenerator();
this.limit = o.limit || 5;

it seems the limit is always 5. i watched the call stack found there was no other limit past into to rewrite the limit

@jarthod
Copy link

jarthod commented May 26, 2015

Duplicate of #1185

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants