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

Method unsubscribe

app/views/account/SubscriptionView.js:538–548  ·  view source on GitHub ↗
(email, id, render)

Source from the content-addressed store, hash-verified

536 }
537
538 unsubscribe (email, id, render) {
539 delete this.state
540 this.stateMessage = ''
541 delete this.justSubscribed
542 this.addSubscribing(email)
543 render()
544 return me.unsubscribeRecipient(id).then(() => {
545 this.removeSubscribing(email)
546 return this.update(render)
547 })
548 }
549
550 update (render) {
551 delete this.state

Callers

nothing calls this directly

Calls 4

addSubscribingMethod · 0.95
removeSubscribingMethod · 0.95
updateMethod · 0.95
unsubscribeRecipientMethod · 0.80

Tested by

no test coverage detected