Title: front.js throws error
Last modified: August 30, 2016

---

# front.js throws error

 *  Resolved [andrejm](https://wordpress.org/support/users/andrejm/)
 * (@andrejm)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/frontjs-throws-error/)
 * Hi,
 * I appreciate your fixes in /js/front.js file with the latest update, however 
   I think you missed few things still.
 * Checking for undefined with typeof operator returns string, therefore
 * `typeof attr !== undefined`
 * triggers **Uncaught TypeError: Cannot read property ‘match’ of undefined** on
   line 124 of front.js
 * AFAIK the correct way of checking this is
 * `typeof attr !== 'undefined'`
 * This causes the lightbox ti malfunction (I am using Nivo lightbox option)
 * Thanks for fixing this!
 * [https://wordpress.org/plugins/responsive-lightbox/](https://wordpress.org/plugins/responsive-lightbox/)

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

 *  [zhgu](https://wordpress.org/support/users/zhgu/)
 * (@zhgu)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/frontjs-throws-error/#post-6555410)
 * Similarly,)
 * Uncaught TypeError: $(…).on is not a function
    anonymous function) @ front.js?
   ver=1.5.7:3 (anonymous function) @ front.js?ver=1.5.7:24
 *  Plugin Author [dFactory](https://wordpress.org/support/users/dfactory/)
 * (@dfactory)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/frontjs-throws-error/#post-6555411)
 * thx [@andrejm](https://wordpress.org/support/users/andrejm/), – it will be fixed
   in a new release
 * [@zhgu](https://wordpress.org/support/users/zhgu/), this however points to a 
   VERY outdated jquery script on your site, not the plugin issue
 *  [zhgu](https://wordpress.org/support/users/zhgu/)
 * (@zhgu)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/frontjs-throws-error/#post-6555425)
 * Thanks!!!
    Upgrade to 1.11.3
 *  Plugin Author [dFactory](https://wordpress.org/support/users/dfactory/)
 * (@dfactory)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/frontjs-throws-error/#post-6555554)
 * fixed in recent release

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

The topic ‘front.js throws error’ is closed to new replies.

 * ![](https://ps.w.org/responsive-lightbox/assets/icon-256x256.png?rev=3460874)
 * [Responsive Lightbox & Gallery](https://wordpress.org/plugins/responsive-lightbox/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/responsive-lightbox/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/responsive-lightbox/)
 * [Active Topics](https://wordpress.org/support/plugin/responsive-lightbox/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/responsive-lightbox/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/responsive-lightbox/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [dFactory](https://wordpress.org/support/users/dfactory/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/frontjs-throws-error/#post-6555554)
 * Status: resolved