I would like to request a feature that also seems to be a recommended practice by the jQuery API for registering event handlers with the on() function of jQuery.
For complex websites it is not always possible to easily disable Lightbox on a particular page (for instance, in cases where a frontend designer that cannot change the javascript execution order or prevent some plugins to be loaded). One way to disable Lightbox on a particular page is to unbind the registered click event on $('body') but as the jQuery API documentation specifies, this would also unbind other handlers attached to the same event type, adding a namespace to the Lightbox plugin would prevent that.
Hi!
I would like to request a feature that also seems to be a recommended practice by the jQuery API for registering event handlers with the on() function of jQuery.
For complex websites it is not always possible to easily disable Lightbox on a particular page (for instance, in cases where a frontend designer that cannot change the javascript execution order or prevent some plugins to be loaded). One way to disable Lightbox on a particular page is to unbind the registered click event on
$('body')
but as the jQuery API documentation specifies, this would also unbind other handlers attached to the same event type, adding a namespace to the Lightbox plugin would prevent that.I'm including a link to my original issue posted on SO: http://stackoverflow.com/a/36471215/861597