Skip to content

Commit

Permalink
updates doc for net/getJSON
Browse files Browse the repository at this point in the history
  • Loading branch information
roboshoes committed Jan 2, 2014
1 parent 67bb57a commit f8c8066
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/net.md
Expand Up @@ -8,7 +8,10 @@ Utilities for leoding and handling external resources
This is a short hand for [`request`](#request). It loads and parses a json file. If loading
is successful `success` will be called in the context of the `xhr` request and with the parsed
JSON as argument.
`error`, if provided, is called when the call either fails or the recieved JSON is not parsable.
`error`, if provided, is called when the call either fails or the recieved JSON is not parsable. In the case
of an error while converting the response into an JavaScript object, the error callback
recieves the `exception` being thrown as well as the recieved `data` and the `status` of the response in that order.
If the request fails on the request level, the error callback will be called with the `responseText` and the `status` only.

See also: [`request`](#request)

Expand Down

0 comments on commit f8c8066

Please sign in to comment.