0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-25 07:58:49 -05:00

Use subject instead of bus on workers ns.

This commit is contained in:
Andrey Antukh 2016-12-19 08:35:48 +01:00
parent 1f7b3b37ab
commit 98b1fd6afd
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95

View file

@ -41,7 +41,7 @@
"Return a initialized webworker instance." "Return a initialized webworker instance."
[path] [path]
(let [wrk (js/Worker. path) (let [wrk (js/Worker. path)
bus (rx/bus)] bus (rx/subject)]
(.addEventListener wrk "message" (.addEventListener wrk "message"
(fn [event] (fn [event]
(let [data (.-data event) (let [data (.-data event)