mirror of
https://github.com/jquery/jquery.git
synced 2026-01-24 23:38:05 -05:00
Safari doesn't return the correct computed opacity. (Fix for bug #1369)
This commit is contained in:
3
src/jquery/jquery.js
vendored
3
src/jquery/jquery.js
vendored
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user