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

Seems like when calling listenTo, only the first function will be added to the object resize event listener. #4

Closed
wnr opened this issue Mar 5, 2015 · 2 comments

Comments

@wnr
Copy link
Owner

wnr commented Mar 5, 2015

Can be solved by having only one function applied to the object, which calls all listeners

@wnr wnr closed this as completed Mar 19, 2015
@asurabhi
Copy link

asurabhi commented Mar 2, 2017

IMO this should be fixed in the library. I am using this in react where the suggested solution is not easy.

@wnr
Copy link
Owner Author

wnr commented Mar 2, 2017

Could you give me more information how this affects you? This should only be an implementation detail of the library, all functions you attach to listenTo should be called (see test case https://github.com/wnr/element-resize-detector/blob/master/test/element-resize-detector_test.js#L149). Is this not the case?

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