danvk/dygraphs — pull request #147 by beda42 (2012-04-26 12:29:29+00:00)
Title: null should be converted into {} in deepcopy

When I want to turn series highlighting off and on again and set highlightSeriesOpts = null, then re-enabling it by setting a value for highlightSeriesOpts, it crashes in deepCopy because typeof(null) == "object" and thus an empty object is not created.
This small fix should take care of this problem (and possibly others with nested objects in options).