phetsims / kite

A library for creating, manipulating and displaying 2D shapes in JavaScript.
MIT License
12 stars 6 forks source link

LineStyles uses _.extend instead of PHET_CORE/merge #81

Closed zepumph closed 4 years ago

zepumph commented 4 years ago

From https://github.com/phetsims/phet-core/issues/71, this is because there is a usage of the type which passes in a constructed object (with a non-Object prototype) as options. With PHET_CORE/merge this is no longer allowed. @jonathanolson how would you like to proceed here?

jonathanolson commented 4 years ago

Added LineStyles.copy() and using it, so we can use merge. Implemented above.