Permalink
Browse files

Dialog: Call _super from _setOption for all options.

  • Loading branch information...
gabrielschulhof committed Mar 12, 2013
1 parent f4442e5 commit 82b8b132a46ee7b5804cf9354c6288d9717450f9
Showing with 1 addition and 4 deletions.
  1. +1 −4 js/widgets/dialog.js
View
@@ -106,11 +106,8 @@ $.widget( "mobile.dialog", $.mobile.widget, {
_setOption: function( key, value ) {
if ( key === "closeBtn" ) {
this._setCloseBtn( value );
- this._super( key, value );
- this.element.attr( "data-" + ( $.mobile.ns || "" ) + "close-btn", value );
- } else {
- this._super( key, value );
}
+ this._super( key, value );
},
// Close method goes back in history

0 comments on commit 82b8b13

Please sign in to comment.