From a553e4c118b24d41aafd65d3cda843631544a456 Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Tue, 6 Mar 2018 17:07:40 +0100 Subject: [PATCH] Fixed typo and removed old comment about purpose of the now relevant block for catching race conditions. --- app/assets/javascripts/app/lib/spine/spine.coffee | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/assets/javascripts/app/lib/spine/spine.coffee b/app/assets/javascripts/app/lib/spine/spine.coffee index df3f598f4..72c96ab8a 100644 --- a/app/assets/javascripts/app/lib/spine/spine.coffee +++ b/app/assets/javascripts/app/lib/spine/spine.coffee @@ -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