Skip to content

Conversation

archmoj
Copy link
Contributor

@archmoj archmoj commented Jan 15, 2021

Resolves #5151 thanks to @alexcjohnson's second suggestion in #5151 (comment).

cc: #5395

@plotly/plotly_js

@archmoj archmoj added this to the NEXT milestone Jan 15, 2021
@archmoj
Copy link
Contributor Author

archmoj commented Jan 15, 2021

FYI - I locally tested #5151 (comment) and it works with the proposed change.

Copy link
Collaborator

@alexcjohnson alexcjohnson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent. Looks like we already have good unit tests for this in https://github.com/plotly/plotly.js/blob/master/test/jasmine/tests/is_plain_object_test.js. I can't think of an easy way to add a cross-context test, for the precise problem discussed in #5151 so I guess this is all we need! 💃

@archmoj archmoj merged commit 997946b into master Jan 15, 2021
@archmoj archmoj deleted the revisit-isPlainObject branch January 15, 2021 15:39
@archmoj archmoj mentioned this pull request May 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Validation fails when running via JsDom in NodeJs

2 participants