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

Method watch

app/models/CocoModel.js:409–414  ·  view source on GitHub ↗
(doWatch)

Source from the content-addressed store, hash-verified

407 }
408
409 watch (doWatch) {
410 if (doWatch == null) { doWatch = true }
411 $.ajax(`${this.urlRoot}/${this.id}/watch`, { type: 'PUT', data: { on: doWatch } })
412 this.watching = () => doWatch
413 return this.watching
414 }
415
416 watching () {
417 return Array.from((this.get('watchers') || [])).includes(me.id)

Callers 12

_initializeTrackerMethod · 0.80
watchForRouteChangeMethod · 0.80
_initializeTrackerMethod · 0.80
_initializeTrackerMethod · 0.80
_initializeTrackerMethod · 0.80
_initializeTrackerMethod · 0.80
toggleWatchLevelMethod · 0.80
toggleWatchComponentMethod · 0.80
toggleWatchSystemMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected