From ce7bc77b1264fc1afdcd8cbf080d7fcd9187a232 Mon Sep 17 00:00:00 2001 From: Gianluca Righetto Date: Wed, 17 Dec 2014 16:17:22 -0200 Subject: [PATCH] =?UTF-8?q?When=20the=20opacity=20of=20an=20element=20is?= =?UTF-8?q?=20equal=20to=20zero,=20the=20transparent=20function=20should?= =?UTF-8?q?=20return=20true,=20but=20the=20strict=20comparison=20(=3D=3D?= =?UTF-8?q?=3D)=20is=20actually=20comparing=20an=20object=20with=20an=20in?= =?UTF-8?q?teger,=20hence=20the=20function=20returns=20false=20in=20any=20?= =?UTF-8?q?case.=20This=20issue=20causes=20the=20edgehandles=20extension?= =?UTF-8?q?=20to=20fail=20as=20it=20creates=20a=20transparent=20=E2=80=9Cg?= =?UTF-8?q?host=E2=80=9D=20node=20that=20shouldn=E2=80=99t=20trigger=20any?= =?UTF-8?q?=20mouse=20events.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/collection-style.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/collection-style.js b/src/collection-style.js index 86b61075c..a10e30e38 100644 --- a/src/collection-style.js +++ b/src/collection-style.js @@ -257,7 +257,7 @@ if( ele ){ if( !hasCompoundNodes ){ - return ele._private.style.opacity === 0; + return ele._private.style.opacity.value === 0; } else { return ele.effectiveOpacity() === 0; }