Commit e647a8a1 authored by John Resig's avatar John Resig

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

parent f83211c6
......@@ -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];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment