A fix that will improve the compatibility of your plugin
-
Hi there,
A customer noticed some problems using your plugin with mine (Microthemer). I discovered that the problem is caused by the following code in your plugin:
jQuery(window).off(‘load scroll.’ + options.sidebar);
The off() method is used very broadly on the load event. It removes any event handlers attached to ‘load’ by other plugins. I recommend qualifying this in the same way you have done for the scroll event. I changed the code to the following which resolved the issue for me. Of course you may have a better alternative.
jQuery(window).off(‘load.’ + options.sidebar+’ scroll.’ + options.sidebar);
Cheers!
Sebastian
- The topic ‘A fix that will improve the compatibility of your plugin’ is closed to new replies.