Skip to content

Commit

Permalink
Issue #1: use "aget" to avoid renamings under advanced optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
jtkDvlp committed Aug 15, 2017
1 parent 6b74e1b commit fea019f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@
:asset-path "js/worker/out"
:output-to "resources/public/js/worker/worker.js"
:output-dir "resources/public/js/worker/out"
:optimizations :simple}}]})
:optimizations :advanced}}]})
4 changes: 2 additions & 2 deletions src/cljs_workers/worker.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@
(.-data event)

handler
(@handlers (keyword (.-handler data)))
(@handlers (keyword (aget data "handler")))

arguments
(js->clj (.-arguments data) :keywordize-keys true)
(js->clj (aget data "arguments") :keywordize-keys true)

result
(handler arguments)]
Expand Down

0 comments on commit fea019f

Please sign in to comment.