aboutsummaryrefslogtreecommitdiffstats
path: root/src/css.js
diff options
context:
space:
mode:
authorDave Methvin <dave.methvin@gmail.com>2011-10-11 21:04:22 -0400
committerDave Methvin <dave.methvin@gmail.com>2011-10-11 21:04:22 -0400
commit83c08ffa1ffa778e41d728ed7fa49044dd7135f9 (patch)
tree47c0d05e46556664e9e07277a727f395f6888bca /src/css.js
parent6afc2c074bec5c19063c8f8ebca6bfb53c7d4cef (diff)
downloadjquery-83c08ffa1ffa778e41d728ed7fa49044dd7135f9.tar.gz
jquery-83c08ffa1ffa778e41d728ed7fa49044dd7135f9.zip
Fix #10478. Replace jQuery.isNaN with jQuery.isNumeric.
Thanks to Christian C. Salvadó for the unit tests!
Diffstat (limited to 'src/css.js')
-rw-r--r--src/css.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/css.js b/src/css.js
index 76c2255ce..2adfdffe1 100644
--- a/src/css.js
+++ b/src/css.js
@@ -211,7 +211,7 @@ if ( !jQuery.support.opacity ) {
set: function( elem, value ) {
var style = elem.style,
currentStyle = elem.currentStyle,
- opacity = jQuery.isNaN( value ) ? "" : "alpha(opacity=" + value * 100 + ")",
+ opacity = jQuery.isNumeric( value ) ? "alpha(opacity=" + value * 100 + ")" : "",
filter = currentStyle && currentStyle.filter || style.filter || "";
// IE has trouble with opacity if it does not have layout