From: Scott González Date: Mon, 16 Sep 2013 18:45:48 +0000 (-0400) Subject: Selectmenu: Code review. X-Git-Tag: 1.11.0-beta.1~160^2~25^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f416a66f59e628bc635e120a39927be0fef139d1;p=jquery-ui.git Selectmenu: Code review. --- diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index 800852c08..8e7289586 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/ui/jquery.ui.selectmenu.js @@ -57,7 +57,7 @@ $.widget( "ui.selectmenu", { _drawButton: function() { var tabindex = this.element.attr( "tabindex" ); - // Fix existing label + // Associate existing label with the new button this.label = $( "label[for='" + this.ids.element + "']" ).attr( "for", this.ids.button ); this._on( this.label, { click: function( event ) { @@ -66,7 +66,7 @@ $.widget( "ui.selectmenu", { } }); - // Hide original select tag + // Hide original select element this.element.hide(); // Create button @@ -101,7 +101,7 @@ $.widget( "ui.selectmenu", { _drawMenu: function() { var that = this; - // Create menu portion, append to body + // Create menu this.menu = $( "