Title: This plugin uses reckless JavaScript &amp; breaks my theme
Last modified: November 27, 2017

---

# This plugin uses reckless JavaScript & breaks my theme

 *  [Corey Salzano](https://wordpress.org/support/users/salzano/)
 * (@salzano)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/this-plugin-uses-reckless-javascript-breaks-my-theme/)
 * This plugin contains a file `assets/js/frontend.js` that has this code on line
   2816:
 *     ```
           $(".accordion").accordion({
               speed: "slow"
           });
       ```
   
 * This jQuery selector, that finds any element on any page with a class `accordion`
   and manipulates it, is reckless. It’s breaking a theme I wrote that uses a CSS
   accordion. It shouldn’t do that. Surely, there is a more specific selector that
   will allow your frontend JavaScript to affect only your plugin’s elements pages
   and allow me to continue using this plugin.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [erdivyang10](https://wordpress.org/support/users/erdivyang10/)
 * (@erdivyang10)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/this-plugin-uses-reckless-javascript-breaks-my-theme/#post-9824580)
 * Hello,
 * Thank You very much for your important suggestion. We have noted it and will 
   include it in our upcoming versions.
 * Thanks
 *  Thread Starter [Corey Salzano](https://wordpress.org/support/users/salzano/)
 * (@salzano)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/this-plugin-uses-reckless-javascript-breaks-my-theme/#post-9830496)
 * Thanks for listening
 *  Thread Starter [Corey Salzano](https://wordpress.org/support/users/salzano/)
 * (@salzano)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/this-plugin-uses-reckless-javascript-breaks-my-theme/#post-10040555)
 * Hello. Is there a plan to address this issue? I just downloaded version 4.0.3
   and it does not contain a more specific jQuery selector. Thanks.
 *  Thread Starter [Corey Salzano](https://wordpress.org/support/users/salzano/)
 * (@salzano)
 * [8 years ago](https://wordpress.org/support/topic/this-plugin-uses-reckless-javascript-breaks-my-theme/#post-10346915)
 * Happy 6 months!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘This plugin uses reckless JavaScript & breaks my theme’ is closed to 
new replies.

 * ![](https://ps.w.org/wp-google-map-plugin/assets/icon-256x256.gif?rev=3111000)
 * [WP Maps - Google Maps,OpenStreetMap,Mapbox,Store Locator,Listing,Directory & Filters](https://wordpress.org/plugins/wp-google-map-plugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-google-map-plugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-google-map-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-google-map-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-google-map-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-google-map-plugin/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Corey Salzano](https://wordpress.org/support/users/salzano/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/this-plugin-uses-reckless-javascript-breaks-my-theme/#post-10346915)
 * Status: not resolved