Skip to content

Commit 7c288f9

Browse files
committed
fixed: issue with window resize event, thx to saus, see https://github.com/fnagel/jquery-ui/issues#issue/52
fixed: deleted console.log()
1 parent e9736b3 commit 7c288f9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ui/jquery.ui.selectmenu.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,7 @@ $.widget("ui.selectmenu", {
227227
});
228228

229229
// needed when window is resized
230-
$(window).bind("resize.selectmenu", function() {
231-
$.proxy(self._refreshPosition, this);
232-
});
230+
$(window).bind( "resize.selectmenu", $.proxy( self._refreshPosition, this ) );
233231
},
234232

235233
_init: function() {

0 commit comments

Comments
 (0)