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

Method checkRemoteChanges

app/models/Level.js:659–666  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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) {

Callers 1

constructorMethod · 0.80

Calls 1

fetchFunction · 0.50

Tested by

no test coverage detected