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
(deftype QuiescentLambdaCallback [closure f] | |
IEquiv | |
(-equiv [this other] | |
(and (instance? QuiescentLambdaCallback other) | |
(= (.-closure this) (.-closure other)))) | |
IFn | |
(-invoke [this & args] (apply (.-f this) args))) | |
(defn lcb |
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
//kanso.json | |
{ | |
"name": "angular-test", | |
"version": "0.0.1", | |
"description": "angular test app", | |
"attachments": "static", | |
"modules": ["modules", "views"], | |
"load": "modules/couch/couch", | |
"dependencies": { | |
"modules": null, |
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
(ns client.html.api.utils | |
(:use [client.html.utils :only [clj->js]])) | |
(def $ js/$) | |
(def ajax-options {:timeout 30000}) | |
(defn remote [type url data & {:keys [on-success on-error]}] | |
(-> | |
(.ajax $ url |