@@ -26,17 +26,19 @@ define( [ "jquery", "./jquery.mobile.widget", "./jquery.mobile.core", "./jquery.
26
26
// The following function serves to rule out some popular browsers with known fixed-positioning issues
27
27
// This is a plugin option like any other, so feel free to improve or overwrite it
28
28
supportBlacklist : function ( ) {
29
- var ua = navigator . userAgent ,
29
+ var w = window ,
30
+ ua = navigator . userAgent ,
30
31
platform = navigator . platform ,
31
32
// Rendering engine is Webkit, and capture major version
32
33
wkmatch = ua . match ( / A p p l e W e b K i t \/ ( [ 0 - 9 ] + ) / ) ,
33
34
wkversion = ! ! wkmatch && wkmatch [ 1 ] ,
34
35
ffmatch = ua . match ( / F e n n e c \/ ( [ 0 - 9 ] + ) / ) ,
35
36
ffversion = ! ! ffmatch && ffmatch [ 1 ] ,
36
37
operammobilematch = ua . match ( / O p e r a M o b i l e \/ ( [ 0 - 9 ] + ) / ) ,
37
- omversion = ! ! operammobilematch && operammobilematch [ 1 ] ,
38
- w = window ;
39
-
38
+ bbmatch = w . blackberry && w . navigator . appVersion . match ( / V e r s i o n \/ ( [ 0 - 9 ] + ) / ) ,
39
+ bbversion = ! ! bbmatch && parseInt ( bbmatch [ 1 ] , 10 ) ,
40
+ omversion = ! ! operammobilematch && operammobilematch [ 1 ] ;
41
+
40
42
if (
41
43
// iOS 4.3 and older : Platform is iPhone/Pad/Touch and Webkit version is less than 534 (ios5)
42
44
( ( platform . indexOf ( "iPhone" ) > - 1 || platform . indexOf ( "iPad" ) > - 1 || platform . indexOf ( "iPod" ) > - 1 ) && wkversion && wkversion < 534 )
@@ -56,7 +58,7 @@ define( [ "jquery", "./jquery.mobile.widget", "./jquery.mobile.core", "./jquery.
56
58
( "palmGetResource" in window && wkversion && wkversion < 534 )
57
59
||
58
60
// BlackBerry six and below.
59
- ( w . blackberry && ( w . navigator . appVersion . match ( / V e r s i o n \/ ( [ 0 - 9 ] ) / ) && parseInt ( RegExp . $1 , 10 ) < 7 ) )
61
+ ( w . blackberry && bbversion < 7 )
60
62
||
61
63
// MeeGo
62
64
( ua . indexOf ( "MeeGo" ) > - 1 && ua . indexOf ( "NokiaBrowser/8.5.0" ) > - 1 )
0 commit comments