You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The docs mentioned that this plugin can be used without jQuery. That does seem to be the case, but I had to modified the final line of the plugin where jQuery is passed into the IIFE. That reference will cause the following error if jQuery is not defined:
wookmark.js:783 Uncaught ReferenceError: jQuery is not defined
I was able to fix this by swapping out the last line:
// Current line
})(jQuery);
// Tweaked line
})(typeof jQuery === 'undefined' ? undefined : jQuery);
This fixes the issue and everything else seems to be working great.
Would you be open to a PR that fixes this?
The text was updated successfully, but these errors were encountered:
Hey Folks,
The docs mentioned that this plugin can be used without jQuery. That does seem to be the case, but I had to modified the final line of the plugin where jQuery is passed into the IIFE. That reference will cause the following error if jQuery is not defined:
I was able to fix this by swapping out the last line:
This fixes the issue and everything else seems to be working great.
Would you be open to a PR that fixes this?
The text was updated successfully, but these errors were encountered: