aaronc / freactive

High-performance, pure Clojurescript, declarative DOM library
http://documentup.com/aaronc/freactive
Eclipse Public License 1.0
387 stars 27 forks source link

Make sure more than two chained classes are translated. #26

Closed philjackson closed 9 years ago

philjackson commented 9 years ago

The interop .replace will only replace the first instance of needle. Using clojure.string/replace will swap out all instances of needle and thus allow more than two chained classes.

aaronc commented 9 years ago

Thanks for finding this. I may change it to just construct a RegEx directly like clojure.string/replace does.