Resizable triggers jquery $(window) and $(document) on resize event
Closed this issue · 2 comments
Hi.
When having for example
:
$(window).on('resize', function(e){
//code here is executed every time resizable action
});
Same happens with $(document)
But does not happen if having this:
window.addEventListener("resize", (event) => {
//code here is not executed every time resizable action
});
or having this: document.addEventListener(...
Tested on latest version 1.14.1
Can you please confirm and propose a fix?
It's always preferable to submit a runnable example, rather than code snippets. From what I can tell, this case is working properly. jQuery fires events that can be "seen" by other jQuery code. In your snippet it appears to expect a native DOM event for resize.
The example doesn't include any jQuery UI usage. jQuery itself doesn't handle the resize
event in any special way. It's hard to tell what's up without seeing the code. When facing a programming issue, please head off to more appropriate venues like Stack Overflow. Reporting issues is meant for when you have a concrete issue with how the library behaves and want to propose some changes to it.