Skip to content

Instantly share code, notes, and snippets.

@fmsbeekmans
Created October 16, 2012 17:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fmsbeekmans/3900572 to your computer and use it in GitHub Desktop.
Save fmsbeekmans/3900572 to your computer and use it in GitHub Desktop.
ClojureScript apply
(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