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

Commit

Permalink
KeepNative: Made keep native just a selector string on $.mobile and d…
Browse files Browse the repository at this point in the history
…eprecate keepNativeSelector from page
  • Loading branch information
arschmitz committed Aug 9, 2013
1 parent 20433c6 commit 40857b3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions js/jquery.mobile.defaults.js
Expand Up @@ -23,6 +23,9 @@ define( [ "jquery", "./jquery.mobile.ns", "json!../package.json" ], function( jQ

hideUrlBar: true,

// Keepnative Selector
keepNative: ":jqmData(role='none'), :jqmData(role='nojs')",

// Class assigned to page currently in view, and during transitions
activePageClass: "ui-page-active",

Expand Down
4 changes: 3 additions & 1 deletion js/widgets/page.js
Expand Up @@ -36,7 +36,9 @@ $.widget( "mobile.page", {
options: {
theme: "a",
domCache: false,
keepNativeDefault: ":jqmData(role='none'), :jqmData(role='nojs')",

// Deprecated in 1.4 remove in 1.5
keepNativeDefault: $.mobile.keepNative,
contentTheme: null
},

Expand Down

0 comments on commit 40857b3

Please sign in to comment.