Skip to content

Commit

Permalink
fix(svg): fix #56, update filter-attribs
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed May 31, 2018
1 parent f33d1e8 commit 17e98c0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/thi/ng/geom/svg/core.cljc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
(ns thi.ng.geom.svg.core
(:require
[clojure.string :refer [starts-with?]]
[thi.ng.math.core :as m]
[thi.ng.geom.core :as g]
[thi.ng.geom.utils :as gu]
Expand Down Expand Up @@ -134,7 +135,9 @@
(loop [acc (transient attribs), ks (keys attribs)]
(if ks
(recur
(if (= "__" (subs (name (first ks)) 0 2)) (dissoc! acc (first ks)) acc)
(if (starts-with? (name (first ks)) "__")
(dissoc! acc (first ks))
acc)
(next ks))
(persistent! acc))))

Expand Down

0 comments on commit 17e98c0

Please sign in to comment.