From cfe5e136674bba837e0eb6c3ea1764d655f9c01a Mon Sep 17 00:00:00 2001 From: Leo Horie Date: Fri, 2 Dec 2016 23:07:49 -0500 Subject: [PATCH] update jsonp docs --- docs/jsonp.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/jsonp.md b/docs/jsonp.md index f0ee9b38..1e2300f7 100644 --- a/docs/jsonp.md +++ b/docs/jsonp.md @@ -26,10 +26,11 @@ m.jsonp({ ### Signature -`promise = m.jsonp(options)` +`promise = m.jsonp([url,] options)` Argument | Type | Required | Description ---------------------- | --------------------------------- | -------- | --- +`url` | `String` | No | If present, it's equivalent to having the option `{url: url}`. Values passed to the `options` argument override options set via this shorthand. `options.url` | `String` | Yes | The URL to send the request to. The URL may be either absolute or relative, and it may contain [interpolations](#dynamic-urls). `options.data` | `any` | No | The data to be interpolated into the URL and serialized into the querystring. `options.type` | `any = Function(any)` | No | A constructor to be applied to each object in the response. Defaults to the [identity function](https://en.wikipedia.org/wiki/Identity_function).