Skip to content

Library does not work using jQuery noConflict mode #8

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

Open
jontas opened this issue Apr 23, 2013 · 0 comments
Open

Library does not work using jQuery noConflict mode #8

jontas opened this issue Apr 23, 2013 · 0 comments

Comments

@jontas
Copy link

jontas commented Apr 23, 2013

There is a problem when attempting to use jquery-counter with jQuery's noConflict mode, where $ is not defined, and the jQuery object is used instead. This is particularly an issue when used on WordPress blogs, as by default, jQuery runs in noConflict mode.

To replicate the problem, add the following after line 87 of examples/simple.html:

$.noConflict();

The following error is raised:

Uncaught TypeError: undefined is not a function jquery.counter.js:242

Since I am using your (amazing) plugin on a WordPress site, I have fixed the problem locally. I am going to send a pull request shortly with the fix. Hopefully you find it useful.

Thanks again such a great library--look to see it in action soon on knewton.com (you'll see it there in a couple of weeks). I modified the image sprites to match our fonts and colors and I think it came out fantastic.

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

1 participant