mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-05 21:24:45 +00:00
Attempt number 2 at fixing 1708 - - nightbuild close dialog throwing error
This commit is contained in:
parent
bee8549a18
commit
e5876e3d3b
1 changed files with 2 additions and 2 deletions
|
|
@ -45,9 +45,9 @@ $.widget( "mobile.dialog", $.mobile.widget, {
|
|||
}
|
||||
|
||||
if( $targetel.length && !$targetel.jqmData("transition") ){
|
||||
var active = $.mobile.urlHistory.getActive();
|
||||
var active = $.mobile.urlHistory.getActive() || {};
|
||||
$targetel
|
||||
.attr("data-" + $.mobile.ns + "transition", ( active ? active.transition : $.mobile.defaultDialogTransition ) )
|
||||
.attr("data-" + $.mobile.ns + "transition", ( active.transition || $.mobile.defaultDialogTransition ) )
|
||||
.attr("data-" + $.mobile.ns + "direction", "reverse");
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue