mirror of
https://github.com/penpot/penpot.git
synced 2025-06-04 16:41:38 +02:00
🔧 Adapt shapes to use new rumext macros.
This commit is contained in:
parent
204f180ec9
commit
fada526f5d
13 changed files with 225 additions and 344 deletions
|
@ -8,11 +8,13 @@
|
|||
(:require [beicon.core :as rx]))
|
||||
|
||||
(defn schedule
|
||||
[ms func]
|
||||
(let [sem (js/setTimeout #(func) ms)]
|
||||
(reify rx/ICancellable
|
||||
(-cancel [_]
|
||||
(js/clearTimeout sem)))))
|
||||
([func]
|
||||
(schedule 0 func))
|
||||
([ms func]
|
||||
(let [sem (js/setTimeout #(func) ms)]
|
||||
(reify rx/ICancellable
|
||||
(-cancel [_]
|
||||
(js/clearTimeout sem))))))
|
||||
|
||||
(defn interval
|
||||
[ms func]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue