Skip to content
Permalink
Browse files

Safari doesn't return the correct computed opacity. (Fix for bug #1369)

  • Loading branch information
jeresig committed Jul 20, 2007
1 parent f83211c commit e647a8a1f63864aa350e8c24926170d0fdff653c
Showing with 3 additions and 0 deletions.
  1. +3 −0 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];

0 comments on commit e647a8a

Please sign in to comment.
You can’t perform that action at this time.