Skip to content

Commit

Permalink
0.8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
tiye committed Dec 22, 2017
1 parent fe99c67 commit b806b8e
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 19 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Respo: A virtual DOM library in ClojureScript
[![Respo](https://img.shields.io/clojars/v/respo/respo.svg)](https://clojars.org/respo/respo)

```clojure
[respo "0.8.2"]
[respo "0.8.3"]
```

* Home http://respo.site
Expand Down
2 changes: 1 addition & 1 deletion build.boot
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
:username "jiyinyiyong"
:password (read-password "Clojars password: ")}]))

(def +version+ "0.8.2")
(def +version+ "0.8.3")

(deftask deploy []
(comp
Expand Down
2 changes: 1 addition & 1 deletion coir.edn

Large diffs are not rendered by default.

7 changes: 0 additions & 7 deletions src/respo/controller/resolve.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,6 @@
(recur element (subvec coord 0 (- (count coord) 1)) event-name)
nil)))))

(defn all-component-coords [markup]
(if (component? markup)
(cons (:coord markup) (all-component-coords (:tree markup)))
(->> (:children markup)
(map (fn [child-entry] (all-component-coords (val child-entry))))
(apply concat))))

(defn build-deliver-event [*global-element dispatch!]
(fn [coord event-name simple-event]
(let [target-element (find-event-target @*global-element coord event-name)
Expand Down
7 changes: 2 additions & 5 deletions src/respo/render/expand.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,8 @@
(doall
(->> children
(map
(fn [child-entry]
(let [k (first child-entry)
child-element (last child-entry)
old-child (get mapped-cache k)]
(fn [[k child-element]]
(let [old-child (get mapped-cache k)]
(comment
if
(nil? old-child)
Expand All @@ -62,7 +60,6 @@
(do (comment println "not changed" coord) old-element)
(let [begin-time (.valueOf (js/Date.))
args (:args markup)
component (first markup)
new-coord (conj coord (:name markup))
new-cursor (or (:cursor markup) cursor)
render (:render markup)
Expand Down
7 changes: 3 additions & 4 deletions src/respo/util/list.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@
(defn pick-attrs [props]
(if (nil? props)
(list)
(let [base-attrs (->> (-> props (dissoc :on) (dissoc :event) (dissoc :style))
(filter
(fn [[k v]] (not (re-matches (re-pattern "on-\\w+") (name k))))))]
(sort-by first base-attrs))))
(->> (-> props (dissoc :on) (dissoc :event) (dissoc :style))
(filter (fn [[k v]] (not (re-matches (re-pattern "on-\\w+") (name k)))))
(sort-by first))))

(defn val-exists? [pair] (some? (last pair)))

Expand Down

0 comments on commit b806b8e

Please sign in to comment.