File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed
Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -9,3 +9,4 @@ pom.xml.asc
99/.nrepl-port
1010.hgignore
1111.hg /
12+ . #*
Original file line number Diff line number Diff line change 1- (defproject vixen " 0.1.1 "
1+ (defproject vixen " 0.1.2 "
22 :description " Manipulate DOM"
33 :url " http://github.com/zensight/vixen"
44 :plugins [[cider/cider-nrepl " 0.12.0" ]]
Original file line number Diff line number Diff line change 140140 [[n p] & others] [[node path]]]
141141 (if n
142142 (let [newly (selector n p vix)]
143- (recur (concat found newly)
144- (concat others
145- (map-indexed (fn [i child]
146- [child (conj p i)])
147- (:content n)))))
143+ (recur (if (empty? newly) found (concat found newly))
144+ (if (empty? (:content n)
145+ others
146+ (concat others
147+ (map-indexed (fn [i child]
148+ [child (conj p i)])
149+ (:content n)))))))
148150 found))))
149151
150152(defn path->selector [path]
You can’t perform that action at this time.
0 commit comments