countdown
countdown copied to clipboard
jQuery wrapper missing from minified version
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 );
right and same applies for the non minified version.
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"