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

jQuery wrapper missing from minified version #19

Open
shazdeh opened this issue Nov 4, 2014 · 2 comments
Open

jQuery wrapper missing from minified version #19

shazdeh opened this issue Nov 4, 2014 · 2 comments

Comments

@shazdeh
Copy link

shazdeh commented Nov 4, 2014

First of all, thank you for this script.
When jquery.countdown.min.js file in the package is included in a page where jQuery is loaded in no-conflict mode the script fails due to the $ variable used in the script. The solution was to wrap the entire thing in a self executing anonymous function:
(function( $ ){ // the script. })( jQuery );

@larsbo
Copy link

larsbo commented Dec 10, 2014

right and same applies for the non minified version.

@regiside
Copy link

regiside commented May 4, 2019

Thank You So Much! This saved me! @rendro Could you add this to the main branch or include something in the documentation about how to use it in no conflict mode(everyone on Wordpress). Without it I was getting javascript error: "Uncaught TypeError: Cannot read property 'each' of undefined"

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

3 participants