Provides a JSONPRequest class for repeated JSONP calls, and a convenience method Y.jsonp(url, callback) to instantiate and send a JSONP request.
Both the constructor as well as the convenience function take two parameters: a url string and a callback.
The url provided must include the placeholder string "{callback}" which will be replaced by a dynamically generated routing function to pass the data to your callback function. An example url might look like "http://example.com/service?callback={callback}".
The second parameter can be a callback function that accepts the JSON payload as its argument, or a configuration object supporting the keys:
this
in the callbacksThis module contains the following classes:
jsonp-url