ajax

  • function
 

a clean Ajax handler, setting options for fetch(). Optionally log errors utilizing the responder & Debug features.

Json.ajax(endpoint, cb, options)

a clean Ajax handler, setting options for fetch(). Optionally log errors utilizing the responder & Debug features.

Parameters

  1. endpoint {String}

    String URL to hit with the ajax request.

  2. cb {function()}

    optional callback function

  3. options {Object}

    override fetch options

Returns

{function()}

cb optional callback function