MCPcopy Index your code
hub / github.com/codecombat/codecombat / fetch

Method fetch

app/models/CocoModel.js:291–303  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

289 }
290
291 fetch (options) {
292 if (!options) { options = {} }
293 if (options.data == null) { options.data = {} }
294 if (this.project) { options.data.project = this.project.join(',') }
295 // console.error @constructor.className, @, "fetching with cache?", options.cache, "options", options # Useful for debugging cached IE fetches
296 if (options.callOz) {
297 const url = options.url || this.getURL()
298 options.url = utils.getProductUrl('OZ', url)
299 }
300 this.jqxhr = super.fetch(options)
301 this.loading = true
302 return this.jqxhr
303 }
304
305 fetchAsPromise (options = {}) {
306 const jqxhr = this.fetch(options)

Callers 15

fetchAsPromiseMethod · 0.95
fetchLatestVersionMethod · 0.95
CocoModel.spec.jsFile · 0.45
extraProvisionsFunction · 0.45
joinWithCodeMethod · 0.45
fetchByCodeMethod · 0.45
removeMemberMethod · 0.45
inviteMembersMethod · 0.45

Calls 1

getURLMethod · 0.95

Tested by

no test coverage detected