Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
series.update() turns es6 classes to objects in userOptions #6046
userOptions should keep their type when they are es6 classes.
I tried putting an object in a series userOptions like so:
where myObject is an instance of class I created like following (es6 syntax):
So putting the option works fine, but when I call series.update() mySpecialOption becomes a different object of type 'Object'. Then my original instance is gone and i cannot use it as planned. :(
I think it is probably caused by H.merge or something in that area...
@jon-a-nygaard Thanks for the reply.
A fix to the H.merge function seems like a good idea, would love to see it :) es6 classes are becoming very popular and I think it's necessary that Highcharts will handle them correctly.