(doWatch)
| 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) |
no outgoing calls
no test coverage detected