CrossClj

3.0.0 docs

SourceDocs



RECENT
    VARS
    always-nil
    atom-logger
    by-id
    fetch-json-as-clj
    fetch-json-as-clj2
    half
    http-success?
    js-log
    log
    one?
    remove-el!
    transit-json-reader

    « Index of all namespaces of this project

    A collection of utility functions.
    
    (atom-logger _kwd _the-atom old-state new-state)
    Log the before / after state of an atom.
    Designed to be used with the add-watch function.
    (by-id el-or-id)
    (fetch-json-as-clj ???)(fetch-json-as-clj ???)(fetch-json-as-clj ???)
    Makes an AJAX request to an HTTP GET endpoint expecting JSON.
    Parses JSON into CLJS using transit.cljs and keywordizes map keys.
    transit.cljs is faster than using js->clj: http://tinyurl.com/ntgxyt8
    Private
    (fetch-json-as-clj2 success-fn error-fn js-evt)
    Private
    (http-success? status)
    (js-log js-thing)
    Log a JavaScript thing.
    
    (log clj-thing)
    Log a Clojure thing.
    
    (remove-el! el-or-id)