You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Halogen/VDom/DOM/Prop.purs
-15
Original file line number
Diff line number
Diff line change
@@ -52,11 +52,6 @@ hydrateProp emit el = renderProp
52
52
53
53
extraAttributeNames ← mkExtraAttributeNames el
54
54
55
-
-- for each prop in array:
56
-
-- if prop is attr - dont set attr to element, store attr under "attr/XXX" key in a returned object
57
-
-- if prop is property - dont set property to element, store property under "prop/XXX" key in a returned object
58
-
-- if prop is handler for DOM.EventType - start listen and add listener to `events` mutable map, store handler under "handler/EVENTTYPE" in a returned object
59
-
-- if prop is ref updater - store `emitterInputBuilder` in under a `ref` key in a returned object, call `emitter` on creation of all props (now) and on halt of all props (later)
-- if prop is attr - set attr to element, store attr under "attr/XXX" key in a returned object
88
-
-- if prop is property - set property to element, store property under "prop/XXX" key in a returned object
89
-
-- if prop is handler for DOM.EventType - start listen and add listener to `events` mutable map, store handler under "handler/EVENTTYPE" in a returned object
90
-
-- if prop is ref updater - store `emitterInputBuilder` in under a `ref` key in a returned object, call `emitter` on creation of all props (now) and on halt of all props (later)
Copy file name to clipboardExpand all lines: src/Halogen/VDom/Util.purs
+21-27
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
moduleHalogen.VDom.Utilwhere
2
2
3
-
importPrelude (Unit, unit, (<>), (==))
3
+
importPrelude (Unit, (<>), (==))
4
4
5
5
importData.Function.UncurriedasFn
6
6
importData.Nullable (Nullable)
@@ -75,33 +75,33 @@ foreign import replicateE
75
75
Unit
76
76
77
77
foreignimportdiffWithIxE
78
-
∷∀oldElemnewElemoutputdismissed
78
+
∷∀bcd
79
79
. EFn.EffectFn5
80
-
(ArrayoldElem) -- e.g. list of vdom elements
81
-
(ArraynewElem) -- e.g. list of vdom elements
82
-
(EFn.EffectFn3IntoldElemnewElemoutput) -- execute action when both elems are found in oldElems array and newElems array under the same index (usually used to remove old element from DOM and add new element to DOM)
83
-
(EFn.EffectFn2IntoldElemdismissed) -- execute action when only oldElem is found, there are no elems left in `Array newElem` (happens when array of old elements is bigger than array of new elements)
84
-
(EFn.EffectFn2IntnewElemoutput) -- execute action when only newElem is found, there are no elems left in `Array oldElem` (happens when array of new elements is bigger than array of old elements)
0 commit comments