Przeglądaj źródła

fix: lint warning

Tienson Qin 3 lat temu
rodzic
commit
f2ca49432b
1 zmienionych plików z 5 dodań i 8 usunięć
  1. 5 8
      src/main/frontend/util.cljc

+ 5 - 8
src/main/frontend/util.cljc

@@ -297,14 +297,14 @@
                                       (reset! t nil)
                                       (apply f args))
                                    threshold)))))))
-#?(:cljs 
+#?(:cljs
    (defn cancelable-debounce
      "Create a stateful debounce function with specified interval
-   
+
       Returns [fire-fn, cancel-fn]
-   
+
       Use `fire-fn` to call the function(debounced)
-   
+
       Use `cancel-fn` to cancel pending callback if there is"
      [f interval]
      (let [debouncer (Debouncer. f interval)]
@@ -1359,10 +1359,7 @@
        (< (.-offsetWidth js/document.documentElement) size))
 
      (defn sm-breakpoint?
-       [] (breakpoint? 640))
-
-     (defn md-breakpoint?
-       [] (breakpoint? 768))))
+       [] (breakpoint? 640))))
 
 #?(:cljs
    (defn event-is-composing?