From f933523c8dddb0e1d2ca1c5fd5eeab6dd40f7aff Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 27 May 2015 11:47:00 +0200 Subject: [PATCH] Removed clone. Just do stringily in try/catch. --- app/assets/javascripts/app/lib/app_init/track.js.coffee | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/app/lib/app_init/track.js.coffee b/app/assets/javascripts/app/lib/app_init/track.js.coffee index 93b365e4d..fcad10c99 100644 --- a/app/assets/javascripts/app/lib/app_init/track.js.coffee +++ b/app/assets/javascripts/app/lib/app_init/track.js.coffee @@ -119,10 +119,11 @@ class _trackSingleton newDataNew = [] for item in newData try - itemNew = _.clone( item ) + + # check if strigify is possibe, prevent ajax errors JSON.stringify(item) - newDataNew.push itemNew + newDataNew.push item catch e # nothing