Attempt number 2 at fixing 1708 - - nightbuild close dialog throwing error

This commit is contained in:
Kin Blas 2011-05-25 17:17:21 -07:00
parent bee8549a18
commit e5876e3d3b

View file

@ -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");
}
});