From 4d60cd2f2efdb439bd3ae4b300d8a521f5f2347f Mon Sep 17 00:00:00 2001 From: Jasper de Groot Date: Thu, 3 Jan 2013 17:24:38 +0100 Subject: [PATCH] Dialog: Removed code that removes active state from buttons on pagehide. Fixes #5111. The code was added because close buttons still had active state when you closed and re-opened a dialog (#1839). I tested without the code and that issue doesn't occur anymore (nav takes care of removing active state). --- js/widgets/dialog.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/js/widgets/dialog.js b/js/widgets/dialog.js index db85e0559cf..7187351ff1e 100644 --- a/js/widgets/dialog.js +++ b/js/widgets/dialog.js @@ -59,9 +59,6 @@ $.widget( "mobile.dialog", $.mobile.widget, { $target.attr( "data-" + $.mobile.ns + "transition", ( active.transition || $.mobile.defaultDialogTransition ) ) .attr( "data-" + $.mobile.ns + "direction", "reverse" ); } - }) - .bind( "pagehide", function( e, ui ) { - $( this ).find( "." + $.mobile.activeBtnClass ).not( ".ui-slider-bg" ).removeClass( $.mobile.activeBtnClass ); }); this._on( $el, {