add open and close as noop for people who might be looping over their selects and to self document the methods for extension

This commit is contained in:
John Bender 2011-09-12 16:53:56 -07:00
parent 219b450c5a
commit f1fef48239

View file

@ -199,6 +199,11 @@ $.widget( "mobile.selectmenu", $.mobile.widget, {
this.setButtonCount();
},
// open and close preserved in native selects
// to simplify users code when looping over selects
open: $.noop,
close: $.noop,
disable: function() {
this._setDisabled( true );
this.button.addClass( "ui-disabled" );