mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-17 06:20:26 +00:00
account for dialog or other sub element enhancements
This commit is contained in:
parent
6bd2805cb9
commit
78381c6fed
1 changed files with 5 additions and 2 deletions
|
|
@ -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 ]();
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue