MCPcopy Create free account
hub / github.com/SeldonIO/seldon-server / jsonpCall

Function jsonpCall

client/js-client/src/rlClient.js:189–199  ·  view source on GitHub ↗
(url, callback)

Source from the content-addressed store, hash-verified

187 }
188
189 function jsonpCall(url, callback) {
190 var stamp = new Date().getTime(),
191 stamped = url + (url.match(/\?/) ? "&" : "?") + "timestamp=" + stamp;
192
193 ajax({
194 url: stamped,
195 type: 'jsonp',
196 jsonpCallback: 'jsonpCallback',
197 success: callback
198 });
199 }
200
201 function withMandatory(name, value, callback) {
202 if (!value) {

Callers 5

addActionFunction · 0.85
recommendedUsersFunction · 0.85
addUserFunction · 0.85
addItemFunction · 0.85
recommendationsForFunction · 0.85

Calls 1

getTimeMethod · 0.45

Tested by

no test coverage detected