Browse Source

chore: remove bindings

Signed-off-by: Yue Yang <[email protected]>
Yue Yang 3 năm trước cách đây
mục cha
commit
acb3a7bd61
1 tập tin đã thay đổi với 1 bổ sung8 xóa
  1. 1 8
      src/main/frontend/handler/editor.cljs

+ 1 - 8
src/main/frontend/handler/editor.cljs

@@ -58,7 +58,6 @@
 
 ;; FIXME: should support multiple images concurrently uploading
 
-
 (defonce *asset-uploading? (atom false))
 (defonce *asset-uploading-process (atom 0))
 (defonce *selected-text (atom nil))
@@ -183,7 +182,6 @@
           (cursor/move-cursor-to node pos)
           (state/set-state! :editor/pos nil))))))
 
-
 (defn highlight-block!
   [block-uuid]
   (let [blocks (array-seq (js/document.getElementsByClassName (str block-uuid)))]
@@ -1678,7 +1676,6 @@
    "+" "+"})
 ;; ":" ":"                              ; TODO: only properties editing and org mode tag
 
-
 (def reversed-autopair-map
   (zipmap (vals autopair-map)
           (keys autopair-map)))
@@ -2737,10 +2734,7 @@
       (do
         (util/stop e)
         ;; not the top block in a page or journal
-        (when-not
-         (let [left-id (:db/id (:block/left block))
-               page-id (:db/id (:block/page block))]
-           (= left-id page-id))
+        (when-not (= (:block/left block) (:block/page block))
           (delete-block! repo false)))
 
       (and (> current-pos 1)
@@ -3030,7 +3024,6 @@
                                      :key k
                                      :shift? (.-shiftKey e)}))))))
 
-
 (defn editor-on-click!
   [id]
   (fn [_e]