Permalink
Browse files

account for dialog or other sub element enhancements

  • Loading branch information...
johnbender committed Oct 21, 2011
1 parent 6bd2805 commit 78381c6fed7ea2da742108bca42bcdf48962f0b7
Showing with 5 additions and 2 deletions.
  1. +5 −2 js/jquery.mobile.widget.js
@@ -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 ]();
}
});

0 comments on commit 78381c6

Please sign in to comment.