highslide-software/export-csv — pull request #2 by d-nation (2013-11-26 16:46:41+00:00)
Title: Added .slice() to the yData to get a deep copy of the array

### Why
As it stands, a shallow copy of series.yData gets pushed onto columns. Then in the next line, series.name is added to the beginning. This actually changes the yData array in series, so that (if it doesn't break the chart) the next time you run "Export CSV" there are n instances of series.name in the data where n = number of times you've exported to csv.

### What
Added the .slice() to the array to get a deep copy with a minimal amount of code.