Skip to content

Commit

Permalink
account for dialog or other sub element enhancements
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbender committed Oct 21, 2011
1 parent bfd3557 commit 4e1c898
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions js/jquery.mobile.widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,12 @@ $.widget( "mobile.widget", {
// TODO remove dependency on the page widget for the keepNative.
// Currently the keepNative value is defined on the page prototype so
// the method is as well
var page = $(target).closest(":jqmData(role='page')").data( "page" );
var page = $(target).closest(":jqmData(role='page')").data( "page" ),
keepNative = (page && page.keepNativeSelector()) || "";

$( this.options.initSelector, target ).not( page.keepNativeSelector() || "" )[ this.widgetName ]();


$( this.options.initSelector, target ).not( keepNative )[ this.widgetName ]();
}
});

Expand Down

0 comments on commit 4e1c898

Please sign in to comment.