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 = []
|
newDataNew = []
|
||||||
for item in newData
|
for item in newData
|
||||||
try
|
try
|
||||||
itemNew = _.clone( item )
|
|
||||||
|
# check if strigify is possibe, prevent ajax errors
|
||||||
JSON.stringify(item)
|
JSON.stringify(item)
|
||||||
|
|
||||||
newDataNew.push itemNew
|
newDataNew.push item
|
||||||
catch e
|
catch e
|
||||||
# nothing
|
# nothing
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue