diff options
author | Felix Nagel <info@felixnagel.com> | 2012-01-18 14:14:09 -0800 |
---|---|---|
committer | Felix Nagel <info@felixnagel.com> | 2012-01-18 14:14:09 -0800 |
commit | cf6eff7abf0541f2f4a2efbc6c90c63a5594e499 (patch) | |
tree | a43448ff03caeee4c8cfa95e6bef43a68a1d5e99 | |
parent | 86dfdb8db56451f46671be91f54b55944a6d47bf (diff) | |
parent | 42391d7678c865b0f41e20d8a8e552eec71d14d8 (diff) | |
download | jquery-ui-cf6eff7abf0541f2f4a2efbc6c90c63a5594e499.tar.gz jquery-ui-cf6eff7abf0541f2f4a2efbc6c90c63a5594e499.zip |
Merge pull request #200 from tschettler/selectmenu
fixed: IE8 focus issue when initializing with multiple selectmenu function calls
-rw-r--r-- | ui/jquery.ui.selectmenu.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index 811c87585..f3f70b97e 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/ui/jquery.ui.selectmenu.js @@ -446,9 +446,10 @@ $.widget("ui.selectmenu", { this._selectedOptionLi().addClass(this.widgetBaseClass + '-item-focus'); // needed when selectmenu is placed at the very bottom / top of the page - window.setTimeout( function() { + clearTimeout(this.refreshTimeout); + this.refreshTimeout = window.setTimeout(function () { self._refreshPosition(); - }, 200 ); + }, 200); }, destroy: function() { |