Skip to content

Commit

Permalink
dom/On: reorder arguments so opts is last
Browse files Browse the repository at this point in the history
  • Loading branch information
dustingetz committed Aug 12, 2024
1 parent cd8ff2d commit cfaaa72
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/hyperfiddle/electric_dom3.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -515,10 +515,10 @@ input's value, use `EventListener`."

(e/defn On
([event-type] ($ On event-type identity))
([event-type f] ($ On event-type f {}))
([event-type f opts] ($ On event-type f opts nil))
([event-type f opts init-v] ($ On node event-type f opts init-v))
([node event-type f opts init-v] (e/client (e/input (m/reductions {} init-v (listen node event-type ((e/capture-fn) f) opts))))))
([event-type f] ($ On event-type f nil))
([event-type f init-v] ($ On event-type f init-v {}))
([event-type f init-v opts] ($ On node event-type f init-v opts))
([node event-type f init-v opts] (e/client (e/input (m/reductions {} init-v (listen node event-type ((e/capture-fn) f) opts))))))

(defn fork
([flow] (fork ##Inf flow))
Expand Down

0 comments on commit cfaaa72

Please sign in to comment.