]> source.dussan.org Git - jquery-ui.git/commitdiff
fixed: issue when resizing window, thx to crob611, see https://github.com/fnagel...
authorFelix Nagel <info@felixnagel.com>
Wed, 15 Dec 2010 16:20:23 +0000 (17:20 +0100)
committerFelix Nagel <info@felixnagel.com>
Wed, 15 Dec 2010 16:20:23 +0000 (17:20 +0100)
ui/jquery.ui.selectmenu.js

index b1cfd790b45b569d342bb5f59b2357ee32c59754..e5eab3da92c0c99c85b3cfca4fc8bd3d0e974e44 100644 (file)
@@ -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;