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

Method fetchLatestVersion

app/models/CocoModel.js:611–615  ·  view source on GitHub ↗
(original, options)

Source from the content-addressed store, hash-verified

609 wait (event) { return new Promise(resolve => this.once(event, resolve)) }
610
611 fetchLatestVersion (original, options) {
612 if (options == null) { options = {} }
613 options.url = _.result(this, 'urlRoot') + '/' + original + '/version'
614 return this.fetch(options)
615 }
616}
617CocoModel.initClass()
618

Callers 3

setHeroMethod · 0.80
setHeroMethod · 0.80
constructorMethod · 0.80

Calls 1

fetchMethod · 0.95

Tested by

no test coverage detected