]> source.dussan.org Git - jquery-ui.git/commitdiff
Selectmenu: Style updates
authorAlexander Schmitz <arschmitz@gmail.com>
Fri, 21 Aug 2015 04:06:35 +0000 (00:06 -0400)
committerAlexander Schmitz <arschmitz@gmail.com>
Fri, 21 Aug 2015 12:06:22 +0000 (08:06 -0400)
Ref #14246
Ref gh-1588

tests/unit/selectmenu/common.js
ui/widgets/selectmenu.js

index 758e004badbf51a8fa4c9196e1ee0224718507f1..8582247caf17805678ef438d4cdb96ba5d062030 100644 (file)
@@ -21,7 +21,7 @@ common.testWidget( "selectmenu", {
                },
                width: false,
 
-               // callbacks
+               // Callbacks
                change: null,
                close: null,
                create: null,
index bf415a82629dec830ec372ffe8628b1c18553504..273e68594c04519b1c45879e497adf3b49539b64 100644 (file)
@@ -58,7 +58,7 @@ return $.widget( "ui.selectmenu", {
                },
                width: false,
 
-               // callbacks
+               // Callbacks
                change: null,
                close: null,
                focus: null,
@@ -169,7 +169,7 @@ return $.widget( "ui.selectmenu", {
                                select: function( event, ui ) {
                                        event.preventDefault();
 
-                                       // support: IE8
+                                       // Support: IE8
                                        // If the item was selected via a click, the text selection
                                        // will be destroyed in IE
                                        that._setSelection();
@@ -410,12 +410,12 @@ return $.widget( "ui.selectmenu", {
                        selection.removeAllRanges();
                        selection.addRange( this.range );
 
-               // support: IE8
+               // Support: IE8
                } else {
                        this.range.select();
                }
 
-               // support: IE
+               // Support: IE
                // Setting the text selection kills the button focus in IE, but
                // restoring the focus doesn't kill the selection.
                this.button.focus();
@@ -446,7 +446,7 @@ return $.widget( "ui.selectmenu", {
                                        this.range = selection.getRangeAt( 0 );
                                }
 
-                       // support: IE8
+                       // Support: IE8
                        } else {
                                this.range = document.selection.createRange();
                        }
@@ -638,7 +638,7 @@ return $.widget( "ui.selectmenu", {
                this.menu.outerWidth( Math.max(
                        this.button.outerWidth(),
 
-                       // support: IE10
+                       // Support: IE10
                        // IE10 wraps long text (possibly a rounding bug)
                        // so we add 1px to avoid the wrapping
                        this.menu.width( "" ).outerWidth() + 1