NodeList doesn't have map. I guess I'll use a for-loop. Now my promises all close over the same mutable var. YavaScript!
-
-
Replying to @andywinterman
@andywinterman Actually, correct answer is: (extend-type js/NodeList ISeqable (-seq [nl] (array-seq nl 0)))2 replies 0 retweets 1 like -
Replying to @lynaghk
@lynaghk So I don't clojurescript, but that looks like you're extending the DOM? I feel compelled to tsk at you.https://developer.mozilla.org/en-US/docs/Web/API/NodeList …1 reply 0 retweets 0 likes
Replying to @andywinterman
@andywinterman Extending Clojure's polymorphic dispatch, not DOM. Think Java's `implements`, but by you instead of authors (and namespaced).
11:24 PM - 30 Sep 2013
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.