Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where tyo place window resize listener #111

Open
cuvimo opened this issue Nov 13, 2015 · 1 comment
Open

Where tyo place window resize listener #111

cuvimo opened this issue Nov 13, 2015 · 1 comment

Comments

@cuvimo
Copy link

cuvimo commented Nov 13, 2015

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.

@ctrlmaniac
Copy link
Contributor

I have problems with the resize function as stated here. Still no solutions 😞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants