Plato on Github
Report Home
dojo/tests/services/rpc/jsonp.service.js
Maintainability
71.83
Lines of code
16
Difficulty
9.79
Estimated Errors
0.10
Function weight
By Complexity
By SLOC
define([], function () { return function (request) { var response = {}; if (request.query.query === 'dojotoolkit') { response.url = 'dojotoolkit.org/'; } return { status: 200, headers: { 'Content-Type': 'application/json' }, body: [ request.query.callback + '(' + JSON.stringify(response) + ');' ] }; }; });