r2782 - commenting

r2782 - commenting


Author: scottjehl
Date: Tue Jun 16 11:45:17 2009
New Revision: 2782
Modified:
branches/labs/selectmenu/ui.selectmenu.js
Log:
commenting
Modified: branches/labs/selectmenu/ui.selectmenu.js
==============================================================================
--- branches/labs/selectmenu/ui.selectmenu.js    (original)
+++ branches/labs/selectmenu/ui.selectmenu.js    Tue Jun 16 11:45:17 2009
@@ -102,13 +102,14 @@
            .click(function(){ this._refreshValue(); })
            .focus(function(){ this.newelement.focus(); });
        
-        
        //create menu portion, append to body
        var cornerClass = (o.style == "dropdown")? " ui-corner-bottom" : "
ui-corner-all"
        this.list = $('<ul class="ui-selectmenu-menu ui-widget
ui-widget-content'+cornerClass+'" role="menu"
aria-labelledby="'+this.ids[0]+'"
id="'+this.ids[1]+'"></ul>').appendTo('body');                
        
        //get selectmenu element option data    
        var s_options = this._selectOptions();
+        
+        //active state class is only used in popup style
        var activeClass = (self.options.style == "popup") ? "
ui-state-active" : "";
        
        //write li's
@@ -158,6 +159,7 @@
                thisLi.appendTo(this.list);
            }
            
+            //this allows for using the scrollbar in an overflowed list
            this.list.bind('mousedown mouseup', function(){return false;});
            
            //append icon if option is specified