From f416a66f59e628bc635e120a39927be0fef139d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Scott=20Gonz=C3=A1lez?= Date: Mon, 16 Sep 2013 14:45:48 -0400 Subject: [PATCH] Selectmenu: Code review. --- ui/jquery.ui.selectmenu.js | 117 +++++++++++++++++++------------------ 1 file changed, 61 insertions(+), 56 deletions(-) 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 = $( "