Skip to content
This repository
Browse code

Merge pull request #4834 from jquery/4828-BB-Box

Support: Enabled box shadow support for BlackBerry OS 6+. Fixed: #4828 - JQM "Text input" issue on Blackberry
  • Loading branch information...
commit e740c1575e87b807e0e79a30fd1c633784fe6861 2 parents a6b6cb5 + 4593acc
Mat Marquis authored September 06, 2012

Showing 1 changed file with 9 additions and 8 deletions. Show diff stats Hide diff stats

  1. 17  js/jquery.mobile.support.js
17  js/jquery.mobile.support.js
@@ -6,14 +6,6 @@ define( [  "jquery", "./jquery.mobile.core", "./jquery.mobile.media", "./jquery.
6 6
 //>>excludeEnd("jqmBuildExclude");
7 7
 (function( $, undefined ) {
8 8
 
9  
-var fakeBody = $( "<body>" ).prependTo( "html" ),
10  
-	fbCSS = fakeBody[ 0 ].style,
11  
-	vendors = [ "Webkit", "Moz", "O" ],
12  
-	webos = "palmGetResource" in window, //only used to rule out scrollTop
13  
-	opera = window.opera,
14  
-	operamini = window.operamini && ({}).toString.call( window.operamini ) === "[object OperaMini]",
15  
-	bb = window.blackberry; //only used to rule out box shadow, as it's filled opaque on BB
16  
-
17 9
 // thx Modernizr
18 10
 function propExists( prop ) {
19 11
 	var uc_prop = prop.charAt( 0 ).toUpperCase() + prop.substr( 1 ),
@@ -26,6 +18,15 @@ function propExists( prop ) {
26 18
 	}
27 19
 }
28 20
 
  21
+var fakeBody = $( "<body>" ).prependTo( "html" ),
  22
+	fbCSS = fakeBody[ 0 ].style,
  23
+	vendors = [ "Webkit", "Moz", "O" ],
  24
+	webos = "palmGetResource" in window, //only used to rule out scrollTop
  25
+	opera = window.opera,
  26
+	operamini = window.operamini && ({}).toString.call( window.operamini ) === "[object OperaMini]",
  27
+	bb = window.blackberry && !propExists( "-webkit-transform" ); //only used to rule out box shadow, as it's filled opaque on BB 5 and lower
  28
+
  29
+
29 30
 function validStyle( prop, value, check_vend ) {
30 31
 	var div = document.createElement( 'div' ),
31 32
 		uc = function( txt ) {

0 notes on commit e740c15

Please sign in to comment.
Something went wrong with that request. Please try again.