Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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 Wilto authored
Showing with 9 additions and 8 deletions.
  1. +9 −8 js/jquery.mobile.support.js
17 js/jquery.mobile.support.js
View
@@ -6,14 +6,6 @@ define( [ "jquery", "./jquery.mobile.core", "./jquery.mobile.media", "./jquery.
//>>excludeEnd("jqmBuildExclude");
(function( $, undefined ) {
-var fakeBody = $( "<body>" ).prependTo( "html" ),
- fbCSS = fakeBody[ 0 ].style,
- vendors = [ "Webkit", "Moz", "O" ],
- webos = "palmGetResource" in window, //only used to rule out scrollTop
- opera = window.opera,
- operamini = window.operamini && ({}).toString.call( window.operamini ) === "[object OperaMini]",
- bb = window.blackberry; //only used to rule out box shadow, as it's filled opaque on BB
-
// thx Modernizr
function propExists( prop ) {
var uc_prop = prop.charAt( 0 ).toUpperCase() + prop.substr( 1 ),
@@ -26,6 +18,15 @@ function propExists( prop ) {
}
}
+var fakeBody = $( "<body>" ).prependTo( "html" ),
+ fbCSS = fakeBody[ 0 ].style,
+ vendors = [ "Webkit", "Moz", "O" ],
+ webos = "palmGetResource" in window, //only used to rule out scrollTop
+ opera = window.opera,
+ operamini = window.operamini && ({}).toString.call( window.operamini ) === "[object OperaMini]",
+ bb = window.blackberry && !propExists( "-webkit-transform" ); //only used to rule out box shadow, as it's filled opaque on BB 5 and lower
+
+
function validStyle( prop, value, check_vend ) {
var div = document.createElement( 'div' ),
uc = function( txt ) {
Please sign in to comment.
Something went wrong with that request. Please try again.