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

Commit ce0385e

Browse files
committed
Support: switch to $.mobile.browser.oldIE FIX: #4881 - Move $.mobile.ie to $.mobile.oldIE
1 parent 0393035 commit ce0385e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

js/jquery.mobile.support.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ function boundingRect() {
117117
// non-UA-based IE version check by James Padolsey, modified by jdalton - from http://gist.github.com/527683
118118
// allows for inclusion of IE 6+, including Windows Mobile 7
119119
$.extend( $.mobile, { browser: {} } );
120-
$.mobile.browser.ie = (function() {
120+
$.mobile.browser.oldIE = (function() {
121121
var v = 3,
122122
div = document.createElement( "div" ),
123123
a = div.all || [];
@@ -131,7 +131,7 @@ $.mobile.browser.ie = (function() {
131131

132132

133133
$.extend( $.support, {
134-
cssTransitions: "WebKitTransitionEvent" in window || validStyle( 'transition', 'height 100ms linear', [ "Webkit", "Moz", "" ] ) && $.mobile.browser.ie > 9 && !opera,
134+
cssTransitions: "WebKitTransitionEvent" in window || validStyle( 'transition', 'height 100ms linear', [ "Webkit", "Moz", "" ] ) && !$.mobile.browser.oldIE && !opera,
135135
pushState: "pushState" in history && "replaceState" in history,
136136
mediaquery: $.mobile.media( "only all" ),
137137
cssPseudoElement: !!propExists( "content" ),
@@ -166,7 +166,7 @@ var nokiaLTE7_3 = (function() {
166166
// default enhanced qualifications are media query support OR IE 7+
167167

168168
$.mobile.gradeA = function() {
169-
return ( $.support.mediaquery || $.mobile.browser.ie && $.mobile.browser.ie >= 7 ) && ( $.support.boundingRect || $.fn.jquery.match(/1\.[0-7+]\.[0-9+]?/) !== null );
169+
return ( $.support.mediaquery || $.mobile.browser.oldIE && $.mobile.browser.oldIE >= 7 ) && ( $.support.boundingRect || $.fn.jquery.match(/1\.[0-7+]\.[0-9+]?/) !== null );
170170
};
171171

172172
$.mobile.ajaxBlacklist =

js/widgets/popup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ define( [
7171
// https://github.com/jquery/jquery-mobile/issues/4784
7272
//
7373
// NOTE this option is modified in _create!
74-
history: !$.mobile.browser.ie
74+
history: !$.mobile.browser.oldIE
7575
},
7676

7777
_eatEventAndClose: function( e ) {

0 commit comments

Comments
 (0)