mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 21:17:03 +00:00
Else protecting dom opacity access.
This commit is contained in:
+3
-1
@@ -934,7 +934,6 @@ var DOMElementPrototype = nil,
|
||||
_opacity = anAlphaValue;
|
||||
|
||||
#if PLATFORM(DOM)
|
||||
_DOMElement.style.opacity = anAlphaValue;
|
||||
|
||||
if (CPFeatureIsCompatible(CPOpacityRequiresFilterFeature))
|
||||
{
|
||||
@@ -943,6 +942,9 @@ var DOMElementPrototype = nil,
|
||||
else
|
||||
_DOMElement.style.filter = "alpha(opacity=" + anAlphaValue * 100 + ")";
|
||||
}
|
||||
else
|
||||
_DOMElement.style.opacity = anAlphaValue;
|
||||
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user