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
I know there a lot of different ways to write javascript but wanted everyone's input on this. In the jquery boilerplate there is a bindEvents function where I have placed the following:
It works this way. But I wanted to get input on if it should go there or live somewhere else since I'm listening for an event on the window instead of an event on the plugin.
The text was updated successfully, but these errors were encountered:
I know there a lot of different ways to write javascript but wanted everyone's input on this. In the jquery boilerplate there is a bindEvents function where I have placed the following:
$(window).on('resize' + '.' + plugin._name, function() {
plugin.resize.call(plugin);
});
It works this way. But I wanted to get input on if it should go there or live somewhere else since I'm listening for an event on the window instead of an event on the plugin.
The text was updated successfully, but these errors were encountered: