jquery dependency missing
-
I kept getting the following errors:
[Error] ReferenceError: Can’t find variable: jQuery
global code (jquery.adrotate.dyngroup.js, line 112)
[Error] ReferenceError: Can’t find variable: jQuery
global code (jquery.adrotate.clicktracker.js, line 29)I tracked it down to jQuery being loaded after those scripts, then to the fact that the dependency was not set for those scripts.
Adding array( ‘jquery’ ) to lines 467 and 468 of adrotate-output.php fixes that problem. Please include it in the next version.if(get_option('adrotate_dynamic_required') > 0) wp_enqueue_script('jshowoff-adrotate', plugins_url('/library/jquery.adrotate.dyngroup.js', __FILE__), array( 'jquery' ), null, $in_footer); if(get_option('adrotate_responsive_required') > 0) wp_enqueue_script('responsive-adrotate', plugins_url('/library/jquery.adrotate.responsive.js', __FILE__), array( 'jquery' ), null, $in_footer);
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘jquery dependency missing’ is closed to new replies.