Fixed typo and removed old comment about purpose of the now relevant block for catching race conditions.

This commit is contained in:
Thorsten Eckel 2018-03-06 17:07:40 +01:00
parent d830f0eb2d
commit a553e4c118

View file

@ -418,11 +418,10 @@ class Model extends Module
if atts.id and @id isnt atts.id
@changeID(atts.id)
# temporary debugging of a possible race condition
if !@constructor.irecords[@id]
model = @constructor.className
atts_json = JSON.stringify(atts)
console.log "Can't refresh not exisint %s instance with ID %s and attributes %s. Possible race condition?", model, @id, atts_json
console.log "Can't refresh not existing %s instance with ID %s and attributes %s. Possible race condition?", model, @id, atts_json
# prevent exception
return