We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
if _
case _ of
1 parent e4185a9 commit 655bbdaCopy full SHA for 655bbda
src/Halogen/VDom/DOM/Prop.purs
@@ -194,9 +194,9 @@ unsafeGetProperty = Util.unsafeGetAny
194
195
removeProperty ∷ EFn.EffectFn2 String DOM.Element Unit
196
removeProperty = EFn.mkEffectFn2 \key el →
197
- EFn.runEffectFn3 Util.hasAttribute null key el >>= case _ of
198
- true -> EFn.runEffectFn3 Util.removeAttribute null key el
199
- false -> case typeOf (Fn.runFn2 Util.unsafeGetAny key el) of
+ EFn.runEffectFn3 Util.hasAttribute null key el >>= if _
+ then EFn.runEffectFn3 Util.removeAttribute null key el
+ else case typeOf (Fn.runFn2 Util.unsafeGetAny key el) of
200
"string" → EFn.runEffectFn3 Util.unsafeSetAny key "" el
201
_ → case key of
202
"rowSpan" → EFn.runEffectFn3 Util.unsafeSetAny key 1 el
0 commit comments