Created
October 16, 2012 17:00
-
-
Save fmsbeekmans/3900572 to your computer and use it in GitHub Desktop.
ClojureScript apply
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn read-from-url [url callback] | |
(letfn [(extract-response [message] | |
(. message/target (getResponseText)))] | |
(xhr/send url #(apply callback (list extract-response %))))) | |
NS_ERROR_XPC_BAD_OP_ON_WN_PROTO: Illegal operation on WrappedNative prototype object | |
http://localhost:8080/main.js | |
Line 2409 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment