summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Nagel <info@felixnagel.com>2010-12-15 17:20:23 +0100
committerFelix Nagel <info@felixnagel.com>2010-12-15 17:20:23 +0100
commitecbf017f0d69e2556fe18a8bfb4fcd52c6c6b944 (patch)
tree6b75796ffe15094d6428f5d1a89c3d5a3a769a1f
parent201685d8649c87483a41d063b2c0d1360ed94f56 (diff)
downloadjquery-ui-ecbf017f0d69e2556fe18a8bfb4fcd52c6c6b944.tar.gz
jquery-ui-ecbf017f0d69e2556fe18a8bfb4fcd52c6c6b944.zip
fixed: issue when resizing window, thx to crob611, see https://github.com/fnagel/jquery-ui/issues#issue/44
-rw-r--r--ui/jquery.ui.selectmenu.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js
index b1cfd790b..e5eab3da9 100644
--- a/ui/jquery.ui.selectmenu.js
+++ b/ui/jquery.ui.selectmenu.js
@@ -211,9 +211,9 @@ $.widget("ui.selectmenu", {
});
// needed when window is resized
- $(window).resize(function(){
- self._refreshPosition();
- });
+ $(window).resize(
+ $.proxy(self._refreshPosition, this)
+ );
},
_init: function() {
var self = this, o = this.options;