From e00fd40751315587f98d143a6d51569f440c5066 Mon Sep 17 00:00:00 2001 From: Alex Z Date: Fri, 13 Nov 2009 04:50:23 +0000 Subject: [PATCH] Firefox doesn't like spaces between the pattern and the modifiers --- js2/js2stopgap.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/js2/js2stopgap.js b/js2/js2stopgap.js index 5b9f5bc943..801be99224 100644 --- a/js2/js2stopgap.js +++ b/js2/js2stopgap.js @@ -610,7 +610,7 @@ jQuery.extend = jQuery.fn.extend = function() { }; // exclude the following css properties to add px -var exclude = / z - ? index | font - ? weight | opacity | zoom | line - ? height / i, +var exclude = / z - ? index | font - ? weight | opacity | zoom | line - ? height /i, // cache defaultView defaultView = document.defaultView || { }, toString = Object.prototype.toString; @@ -791,7 +791,7 @@ jQuery.extend( { } // Make sure we're using the right name for getting the float value - if ( name.match( / float / i ) ) + if ( name.match( / float /i ) ) name = styleFloat; if ( !force && style && style[ name ] ) @@ -800,10 +800,10 @@ jQuery.extend( { else if ( defaultView.getComputedStyle ) { // Only "float" is needed here - if ( name.match( / float / i ) ) + if ( name.match( / float /i ) ) name = "float"; - name = name.replace( / ( [A - Z] ) / g, "-$1" ).toLowerCase(); + name = name.replace( / ( [A - Z] ) /g, "-$1" ).toLowerCase(); var computedStyle = defaultView.getComputedStyle( elem, null ); @@ -9506,4 +9506,4 @@ function js2AddOnloadHook( func ) { } // Define a dummy mvJsLoader.doLoad() function -mvJsLoader = { doLoad: function( deps, callback ) { callback(); } }; \ No newline at end of file +mvJsLoader = { doLoad: function( deps, callback ) { callback(); } }; -- 2.20.1