diff options
author | John Resig <jeresig@gmail.com> | 2007-07-20 22:47:21 +0000 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2007-07-20 22:47:21 +0000 |
commit | e647a8a1f63864aa350e8c24926170d0fdff653c (patch) | |
tree | c62013a942ccd39e9858b64c79593202c2d2d85f /src | |
parent | f83211c684b0a1031001c448ff7a4cfbac8c1c1f (diff) | |
download | jquery-e647a8a1f63864aa350e8c24926170d0fdff653c.tar.gz jquery-e647a8a1f63864aa350e8c24926170d0fdff653c.zip |
Safari doesn't return the correct computed opacity. (Fix for bug #1369)
Diffstat (limited to 'src')
-rw-r--r-- | src/jquery/jquery.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index f54ee30a5..0ff52fa51 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -1471,6 +1471,9 @@ jQuery.extend({ ret = c && c.getPropertyValue(prop) || ""; }); + if ( prop == "opacity" && ret == "" ) + ret = "1"; + } else if (elem.currentStyle) { var newProp = prop.replace(/\-(\w)/g,function(m,c){return c.toUpperCase();}); ret = elem.currentStyle[prop] || elem.currentStyle[newProp]; |