Remove unused local events

This commit is contained in:
Nicholas Kariniemi 2014-08-06 00:09:11 +03:00
parent 4b8f514a4c
commit 00efd3d53a
2 changed files with 2 additions and 6 deletions

View file

@ -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")

View file

@ -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