Fixed typo and removed old comment about purpose of the now relevant block for catching race conditions.
This commit is contained in:
parent
d830f0eb2d
commit
a553e4c118
1 changed files with 1 additions and 2 deletions
|
@ -418,11 +418,10 @@ class Model extends Module
|
||||||
if atts.id and @id isnt atts.id
|
if atts.id and @id isnt atts.id
|
||||||
@changeID(atts.id)
|
@changeID(atts.id)
|
||||||
|
|
||||||
# temporary debugging of a possible race condition
|
|
||||||
if !@constructor.irecords[@id]
|
if !@constructor.irecords[@id]
|
||||||
model = @constructor.className
|
model = @constructor.className
|
||||||
atts_json = JSON.stringify(atts)
|
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
|
# prevent exception
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue