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

meteor-typeahead with kadira debug #11

Open
DavidSichau opened this issue Jul 3, 2015 · 3 comments
Open

meteor-typeahead with kadira debug #11

DavidSichau opened this issue Jul 3, 2015 · 3 comments

Comments

@DavidSichau
Copy link

If one uses meteor-typeahead with kadira debug some parameters are unefined in the search helper. Without kadira debug this is no problem. See also sergeyt/meteor-typeahead#86.

Template.usersTypeahead.helpers({
    search: function(query, callback) {
        console.log(query); <-- this is undefined with kadira debug
        console.log(callback); <-- this is also undefined with kadira debug
        if(_.isString(query)) {
            Meteor.call('getUsers', query, function (err, res) {
                if (err) {
                    console.log(err);
                    return;
                }
                console.log(res);
                callback(res);
            });
        }
    }
})
@mcoenca
Copy link

mcoenca commented Sep 17, 2015

Ouah just spent 3 hours on this one :( Thanks I should have gone directyle to the issues panel... I wonder how you figured out that kadira bug was the source of conflict, well done ^^

@arunoda
Copy link
Contributor

arunoda commented Sep 18, 2015

Oh! How do I miss this?

Okay, here's the issue here:
Check this line: https://github.com/sergeyt/meteor-typeahead/blob/master/index.js#L315

Typehead is looking at the argument count and since we wrapped it, there is no way typeahead can figure argument count.

I don't know how to fix this. But I see what I can do.

@nkahnfr
Copy link

nkahnfr commented Jan 26, 2016

Hi,

I also lost a couple of hours understanding my issue was a conflict between these packages. To keep my application working I had to remove kadira debug.
Do you think the issue could get fix somehow?

Thanks

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

No branches or pull requests

4 participants