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

False-positive for event scope #63

Open
just-boris opened this issue Jun 21, 2016 · 2 comments
Open

False-positive for event scope #63

just-boris opened this issue Jun 21, 2016 · 2 comments

Comments

@just-boris
Copy link

Given the following code

$(document).on('ajaxSend', someHandler).on('ajaxSuccess', anotherHandler);

It produces me event-scope error on the second on call. But there is no Backbone usage in this code, so error shouldn't appear there

@ilyavolodin
Copy link
Owner

Thanks for the issue. Interesting. I guess that's because of the chained call. Not really sure how I can fix this, right now, but I'll take a look.

@just-boris
Copy link
Author

just-boris commented Jun 21, 2016

Thanks for the fast feedback!

Also, I'd like to add, that it is not necessary to have several on calls.
This code also produces warning:

$(document).doSomething().on();

It happens when you have on not the first in methods chain.

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

2 participants