Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit 82b8b13

Browse files
author
Gabriel Schulhof
committed
Dialog: Call _super from _setOption for all options.
1 parent f4442e5 commit 82b8b13

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

js/widgets/dialog.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,8 @@ $.widget( "mobile.dialog", $.mobile.widget, {
106106
_setOption: function( key, value ) {
107107
if ( key === "closeBtn" ) {
108108
this._setCloseBtn( value );
109-
this._super( key, value );
110-
this.element.attr( "data-" + ( $.mobile.ns || "" ) + "close-btn", value );
111-
} else {
112-
this._super( key, value );
113109
}
110+
this._super( key, value );
114111
},
115112

116113
// Close method goes back in history

0 commit comments

Comments
 (0)