Skip to content

Conversation

alexcjohnson
Copy link
Collaborator

cc @antoinerg - a sort of followup to #3114

try {
// `this` should always be console, since here we're always
// applying a method of the console object.
f.apply(console, args);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

In current browsers this works anyway, but console is really the right this here and some old browsers (Chrome 51 and presumably before) need it to be correct. See eg https://github.com/plotly/phoenix-integration/issues/223#issuecomment-431863801

@antoinerg
Copy link
Contributor

Looks good to me! Maybe wait for the CI tests to run and then 💃 !

@alexcjohnson alexcjohnson merged commit 85c42aa into master Oct 22, 2018
@alexcjohnson alexcjohnson deleted the robust-log branch October 22, 2018 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants