wrapped if condition order

This commit is contained in:
scottjehl 2011-02-02 00:02:59 -05:00
parent 91ee3fbfca
commit cfceeced2e

View file

@ -350,7 +350,7 @@ $.widget( "mobile.selectmenu", $.mobile.widget, {
return options.index( this );
}).get();
if( !self.options.nativeMenu && forceRebuild || select[0].options.length > self.list.find('li').length ){
if( !self.options.nativeMenu && ( forceRebuild || select[0].options.length > self.list.find('li').length )){
self._buildList();
}