Skip to content
Browse files

Fix for issue #1361

Mixin individual properties to options instead of calling .jqmData()
  • Loading branch information...
1 parent 7dc20cd commit a908c5a6ef9d864e9fc398a31c1136abfd3008a8 @gseguin gseguin committed Sep 15, 2011
Showing with 5 additions and 1 deletion.
  1. +5 −1 js/jquery.mobile.buttonMarkup.js
View
6 js/jquery.mobile.buttonMarkup.js
@@ -9,7 +9,11 @@
$.fn.buttonMarkup = function( options ) {
return this.each( function() {
var el = $( this ),
- o = $.extend( {}, $.fn.buttonMarkup.defaults, el.jqmData(), options ),
+ o = $.extend( {}, $.fn.buttonMarkup.defaults, {
+ icon: el.jqmData( "icon" ),
+ iconpos: el.jqmData( "iconpos" ),
+ theme: el.jqmData( "theme" )
+ }, options ),
// Classes Defined
innerClass = "ui-btn-inner",

0 comments on commit a908c5a

Please sign in to comment.
Something went wrong with that request. Please try again.