 (ns onyx.windowing.triggers
-  (:require [onyx.windowing.coerce :refer [to-standard-units]]
+  (:require [onyx.windowing.coerce :refer [to-standard-units standard-units-for]]
             [onyx.windowing.window-id :as wid]
             [onyx.peer.operation :refer [kw->fn]]
             [onyx.static.planning :refer [find-window]]

                     #(dissoc % (:trigger/window-id trigger)))))

(defmethod trigger-setup :default
  [event _ _]
  event)

(defmethod trigger-teardown :default
  [event _ _]
  event)

(defmulti trigger-setup
  (fn [event trigger id]
    (:trigger/type trigger)))

(defmulti trigger-fire
  (fn [event trigger id invoker & args]
    [(:trigger/type trigger) invoker]))

(defmulti trigger-teardown
  (fn [event trigger id]
