]> source.dussan.org Git - jquery-ui.git/commitdiff
Spinner: Use jQuery's focus() method instead of DOM method to set focus
authorjzaefferer <joern.zaefferer@gmail.com>
Mon, 21 Feb 2011 21:45:19 +0000 (22:45 +0100)
committerjzaefferer <joern.zaefferer@gmail.com>
Mon, 21 Feb 2011 21:45:19 +0000 (22:45 +0100)
to input. Fixes testsuite in IE6.

ui/jquery.ui.spinner.js

index 6d4d10d5133e25c92ed73d07dfb218c8e8390e88..9dd0afe9b28e5924b8f98a66ac3931ec37c3e60f 100644 (file)
@@ -257,7 +257,7 @@ $.widget('ui.spinner', {
                if (this.timer) {
                        window.clearTimeout(this.timer);
                }
-               this.element[0].focus();
+               this.element.focus();
                this.spinning = false;
                this._trigger('stop', event);
        },