Skip to content
This repository has been archived by the owner on Jul 26, 2023. It is now read-only.

Commit

Permalink
Support: Enabled box shadow support for BlackBerry OS 6+. Fixed: 4828…
Browse files Browse the repository at this point in the history
… - JQM "Text input" issue on Blackberry
  • Loading branch information
Jason Scott committed Aug 12, 2012
1 parent b2c66d6 commit 4593acc
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions js/jquery.mobile.support.js
Expand Up @@ -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 ),
Expand All @@ -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 ) {
Expand Down

0 comments on commit 4593acc

Please sign in to comment.