Remove unused local events
This commit is contained in:
parent
4b8f514a4c
commit
00efd3d53a
2 changed files with 2 additions and 6 deletions
|
@ -62,12 +62,10 @@
|
|||
(init-state [_]
|
||||
(let [publisher (chan)]
|
||||
{:edit-state :waiting
|
||||
:>local-events publisher
|
||||
:<local-events (a/pub publisher identity)
|
||||
:grub grub}))
|
||||
|
||||
om/IRenderState
|
||||
(render-state [_ {:keys [edit-state >local-events] :as state}]
|
||||
(render-state [_ {:keys [edit-state] :as state}]
|
||||
(html
|
||||
[:li.list-group-item.grub-item
|
||||
{:class [(when completed "completed")
|
||||
|
|
|
@ -55,8 +55,6 @@
|
|||
(init-state [_]
|
||||
(let [publisher (chan)]
|
||||
{:edit-state :waiting
|
||||
:>local-events publisher
|
||||
:<local-events (a/pub publisher identity)
|
||||
:name (:name props)
|
||||
:grubs (:grubs props)}))
|
||||
|
||||
|
@ -66,7 +64,7 @@
|
|||
(om/set-state! owner :grubs (:grubs next-props)))
|
||||
|
||||
om/IRenderState
|
||||
(render-state [this {:keys [edit-state >local-events name grubs]}]
|
||||
(render-state [this {:keys [edit-state name grubs]}]
|
||||
(let [update (om/get-shared owner :recipe-update)
|
||||
add-grubs-ch (om/get-shared owner :recipe-add-grubs)]
|
||||
(html
|
||||
|
|
Loading…
Reference in a new issue