Removed clone. Just do stringily in try/catch.
This commit is contained in:
parent
23b15acf52
commit
f933523c8d
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue