()
| 657 | } |
| 658 | |
| 659 | checkRemoteChanges () { |
| 660 | return fetch(this.url()).then(response => { |
| 661 | return response.json().then(remoteAttributes => { |
| 662 | const hasChanges = this._revertAttributes && !_.isEqual(remoteAttributes, this._revertAttributes) |
| 663 | return this.trigger('remote-changes-checked', { hasChanges }) |
| 664 | }) |
| 665 | }) |
| 666 | } |
| 667 | |
| 668 | hasAccessByTeacher (teacher) { |
| 669 | if (!teacher) { |