Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit 40857b3

Browse files
committed
KeepNative: Made keep native just a selector string on $.mobile and deprecate keepNativeSelector from page
1 parent 20433c6 commit 40857b3

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

js/jquery.mobile.defaults.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ define( [ "jquery", "./jquery.mobile.ns", "json!../package.json" ], function( jQ
2323

2424
hideUrlBar: true,
2525

26+
// Keepnative Selector
27+
keepNative: ":jqmData(role='none'), :jqmData(role='nojs')",
28+
2629
// Class assigned to page currently in view, and during transitions
2730
activePageClass: "ui-page-active",
2831

js/widgets/page.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ $.widget( "mobile.page", {
3636
options: {
3737
theme: "a",
3838
domCache: false,
39-
keepNativeDefault: ":jqmData(role='none'), :jqmData(role='nojs')",
39+
40+
// Deprecated in 1.4 remove in 1.5
41+
keepNativeDefault: $.mobile.keepNative,
4042
contentTheme: null
4143
},
4244

0 commit comments

Comments
 (0)