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

Method fetch

app/collections/CocoCollection.js:58–71  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

56 }
57
58 fetch (options) {
59 if (options == null) { options = {} }
60 if (this.project) {
61 if (options.data == null) { options.data = {} }
62 options.data.project = this.project.join(',')
63 }
64 if (options.callOz) {
65 const url = options.url || this.getURL()
66 options.url = utils.getProductUrl('OZ', url)
67 }
68 this.jqxhr = super.fetch(options)
69 this.loading = true
70 return this.jqxhr
71 }
72
73 setProjection (project) {
74 this.project = project

Callers 15

constructorMethod · 0.95
fetchSessionsMethod · 0.95
buildValueForDisplayMethod · 0.95
buildValueForDisplayMethod · 0.95
constructorMethod · 0.95
constructorMethod · 0.95
setItemMethod · 0.95
fetchByUserIDMethod · 0.45
fetchBySlugMethod · 0.45
fetchLatestMethod · 0.45

Calls 1

getURLMethod · 0.95

Tested by

no test coverage detected