allow coerce-path and comp-paths to work with more sequence types

This commit is contained in:
Nathan Marz 2015-06-24 18:02:20 -04:00
parent c7e0fff2db
commit 784378af34

View file

@ -206,6 +206,18 @@
#?(:clj java.util.List :cljs cljs.core/PersistentVector)
(coerce-path [this]
(comp-paths* this))
#?@(:cljs [
cljs.core/IndexedSeq
(coerce-path [this]
(coerce-path (vec this)))
cljs.core/EmptyList
(coerce-path [this]
(coerce-path (vec this)))
cljs.core/List
(coerce-path [this]
(coerce-path (vec this)))
])
#?(:clj Object :cljs js/Object)
(coerce-path [this]