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

Method fetchAsPromise

app/models/CocoModel.js:305–310  ·  view source on GitHub ↗
(options = {})

Source from the content-addressed store, hash-verified

303 }
304
305 fetchAsPromise (options = {}) {
306 const jqxhr = this.fetch(options)
307 return new Promise((resolve, reject) => {
308 jqxhr.then(() => resolve(this), reject)
309 })
310 }
311
312 markToRevert () {
313 if (this.type() === 'ThangType') {

Callers 1

recalculateHsStarsMethod · 0.80

Calls 1

fetchMethod · 0.95

Tested by

no test coverage detected