Created
February 3, 2014 10:40
-
-
Save beshur/8781777 to your computer and use it in GitHub Desktop.
javascript jQueryUI Resizable window resize bug fix (jQuery)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// fix jqueryui resizable bug: | |
// | |
// jqueryui resizable on 'resize' event invokes | |
// window.resize event, which maybe unwanted behaviour sometimes | |
// | |
window.onresize = function(event) { | |
if (typeof event.target.getAttribute === 'function') | |
return; | |
}; | |
// or jQuery way, with shortened event | |
$(window).resize(function(e) { | |
if (typeof e.target.getAttribute === 'function') return; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment