MCPcopy Create free account
hub / github.com/codecombat/codecombat / success

Method success

app/models/CocoModel.js:499–501  ·  view source on GitHub ↗
(collection)

Source from the content-addressed store, hash-verified

497 const achievements = new NewAchievementCollection()
498 return achievements.fetch({
499 success (collection) {
500 if (!_.isEmpty(collection.models)) { return me.fetch(({ cache: false, success () { return Backbone.Mediator.publish('achievements:new', { earnedAchievements: collection }) } })) }
501 },
502 error () {
503 return console.error('Miserably failed to fetch unnotified achievements', arguments)
504 },

Callers

nothing calls this directly

Calls 2

publishMethod · 0.80
fetchMethod · 0.45

Tested by

no test coverage detected