promise

  • function
 

an Ajax error response handler. Internal to Json only.

Json.promise(signature, response, reject, false)

an Ajax error response handler. Internal to Json only.

Parameters

  1. signature {Object}

    Error message setup info

  2. response {function()}

    AJax data that fetch got

  3. reject {Boolean}

    otherwise resolve

  4. false {*}

Returns

{Promise}

A Promise resolution or rejection with the data, status