Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Support: Enabled box shadow support for BlackBerry OS 6+. Fixed: 4828…

… - JQM "Text input" issue on Blackberry
  • Loading branch information...
commit 4593acc4b9705540a9053157bae5c265bceee999 1 parent b2c66d6
Jason Scott authored
Showing with 9 additions and 8 deletions.
  1. +9 −8 js/jquery.mobile.support.js
View
17 js/jquery.mobile.support.js
@@ -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 ) {

1 comment on commit 4593acc

@toddparker

@jasondscott - @Wilto will test this change on BB 5,6,7 and playbook 1 and 2. I think this was added originally because BB6 has issues with box-shadow, border-radius,and gradients playing nicely. The corners would be the wrong color, esp on forms. Can you confirm this looks ok on all these too?

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