countdown icon indicating copy to clipboard operation
countdown copied to clipboard

jQuery wrapper missing from minified version

Open shazdeh opened this issue 9 years ago • 2 comments

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 );

shazdeh avatar Nov 04 '14 21:11 shazdeh

right and same applies for the non minified version.

larsbo avatar Dec 10 '14 08:12 larsbo

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"

regiside avatar May 04 '19 02:05 regiside