Title: Bug and Fix: script dependencies
Last modified: August 22, 2016

---

# Bug and Fix: script dependencies

 *  Resolved [Jason LeMahieu (MadtownLems)](https://wordpress.org/support/users/madtownlems/)
 * (@madtownlems)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/bug-and-fix-script-dependencies/)
 * Hey bud!
 * I found an issue in your plugin that can cause some JavaScript errors, typically
   resulting in the datatable js having issues due to jQuery not being defined.
 * The problem is with how you’re indicating js dependencies. Dependencies need 
   to be passed in as an array, and you’re just sending in the string ‘jquery’.
 * For example, line 370 currently says:
    ‘jquery’ but it needs to say: array( ‘
   jquery’ )
 * in order to make sure jquery is loaded properly.
 * You can clearly extrapolate the logic there to all the other wp_enqueue_* calls.
 * This bug probably went unnoticed for so long because almost every site has jquery
   loaded from either the theme or another plugin anyway, but this will fix the 
   cases where that’s not true – like the one we just ran into!
 * Let me know if you have any questions! And thanks for the great plugin.
 * [https://wordpress.org/plugins/inline-google-spreadsheet-viewer/](https://wordpress.org/plugins/inline-google-spreadsheet-viewer/)

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

 *  Plugin Author [Meitar](https://wordpress.org/support/users/meitar/)
 * (@meitar)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/bug-and-fix-script-dependencies/#post-5858575)
 * D’oh, you’re right, that’s a bug. Thanks for pointing that out. I will fix it
   today.
 *  Plugin Author [Meitar](https://wordpress.org/support/users/meitar/)
 * (@meitar)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/bug-and-fix-script-dependencies/#post-5858593)
 * Version 0.8.4 fixes this and was released today. Thanks again for alerting me
   to the problem.

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

The topic ‘Bug and Fix: script dependencies’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/inline-google-spreadsheet-viewer.
   svg)
 * [Inline Google Spreadsheet Viewer](https://wordpress.org/plugins/inline-google-spreadsheet-viewer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/inline-google-spreadsheet-viewer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/inline-google-spreadsheet-viewer/)
 * [Active Topics](https://wordpress.org/support/plugin/inline-google-spreadsheet-viewer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/inline-google-spreadsheet-viewer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/inline-google-spreadsheet-viewer/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Meitar](https://wordpress.org/support/users/meitar/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/bug-and-fix-script-dependencies/#post-5858593)
 * Status: resolved