Permalink
Browse files

prefer defined theme from prototype or data options Fixes #2423

  • Loading branch information...
1 parent 6a4bd76 commit ee6027a196a4e60ee2a8346b931435a47b4f2c58 @johnbender johnbender committed Sep 12, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 js/jquery.mobile.forms.select.js
@@ -30,6 +30,10 @@ $.widget( "mobile.selectmenu", $.mobile.widget, {
},
_theme: function(){
+ if ( this.options.theme ){
+ return this.options.theme;
+ }
+
var themedParent, theme;
// if no theme is defined, try to find closest theme container
// TODO move to core as something like findCurrentTheme

0 comments on commit ee6027a

Please sign in to comment.