From 59b7c55ba2cd2ca82c6a1f1fec2d67b6aa1436dd Mon Sep 17 00:00:00 2001 From: Ross Boucher Date: Mon, 13 Oct 2008 20:11:22 -0700 Subject: [PATCH] Else protecting dom opacity access. --- AppKit/CPView.j | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/AppKit/CPView.j b/AppKit/CPView.j index c1bb89306..26a2d52f3 100644 --- a/AppKit/CPView.j +++ b/AppKit/CPView.j @@ -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 }