Code: Select all
5120 function Chart(options, callback) {
5121
5122 // Handle regular options
5123 var seriesOptions = options.series; // skip merging data points to increase performance
5124 options.series = null;
5125 options = merge(defaultOptions, options); // do the merge
5126 options.series = seriesOptions; // set back the series data
- line 5125 creates a new options object (merge creates a new object)
- line 5126 will set the series data at the new object
=> the series data from the original object is gone.....