From c35e6f2fdee3f861cedb8ab23f0444ce6fd08d6e Mon Sep 17 00:00:00 2001 From: Mat Marquis Date: Thu, 12 Jan 2012 18:55:44 -0500 Subject: [PATCH] Comment typo, made a TODO about globalizing the testing method added in the previous commit. --- js/jquery.mobile.support.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/jquery.mobile.support.js b/js/jquery.mobile.support.js index cfb23f29..89e496f7 100644 --- a/js/jquery.mobile.support.js +++ b/js/jquery.mobile.support.js @@ -33,8 +33,8 @@ function transform3dTest() { div = document.createElement('div'); div.setAttribute('style', '-moz-perspective: 100px'); - /* Android 2.3 (at least) returns a positive for 3D-specific properties—`perspective`, `perspective-origin`, `backface-visibility—necessitating` the preceeding approach to pass FF10+. */ - +/* Android 2.3 (at least) returns a positive for 3D-specific properties—`perspective`, `perspective-origin`, `backface-visibility`—necessitating the preceeding approach to pass FF10+. +TODO: This method of creating an element, setting a style attribute, then grabbing the result is used in a few places now. We should probably look into globalizing it, a la Modernizr. */ return div.style.MozPerspective !== undefined || $.mobile.media( "(-" + vendors.join( "-" + prop + "),(-" ) + "-" + prop + "),(" + prop + ")" ); }