r2718 - removed replaceElement option. selectmenu is a 1-1 replacement, so the option isn't neces...

r2718 - removed replaceElement option. selectmenu is a 1-1 replacement, so the option isn't neces...


Author: scottjehl
Date: Fri Jun 12 07:14:05 2009
New Revision: 2718
Modified:
branches/labs/selectmenu/ui.selectmenu.js
Log:
removed replaceElement option. selectmenu is a 1-1 replacement, so the
option isn't necessary.
Modified: branches/labs/selectmenu/ui.selectmenu.js
==============================================================================
--- branches/labs/selectmenu/ui.selectmenu.js    (original)
+++ branches/labs/selectmenu/ui.selectmenu.js    Fri Jun 12 07:14:05 2009
@@ -188,9 +188,7 @@
        this.newelement.prepend('<span class="ui-selectmenu-status">'+
s_options[this._selectedIndex()].text +'</span>');
        
        //hide original selectmenu element
-        if(o.hideElement){
-            this.element.hide();
-        }
+        this.element.hide();
        
        //update value
        if(o.value){ this.value(o.value); }
@@ -350,7 +348,6 @@
    eventPrefix: "selectmenu",
    defaults: {
        value: null, //set selected value to an index (accepts index number)
-        hideElement: true, //hide original select element
        transferClasses: true, //transfer classes from select
        style: 'popup', //also avail: 'dropdown'
        width: null, //defaults to select width