New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Toggling spy panel no longer throws an error #8877
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i might be wrong but this seems wrong :) so in dispatch you now always overwrite handler.highlight function with dispatch.highlight .... you defined default noop functions on handler, but those will always get overwriten by dispatch.highligh
if (!this.handler.highlight) { | ||
this.handler.highlight = self.highlight; | ||
} | ||
this.handler.highlight = self.highlight; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so you are always overwriting handler.highlight, even if its already defined. when area chart defines highlight function on handler it will be ignored .... (overwriten by dispatch.highlight)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great, thanks for flagging this. you're right, this is not going to work since we're also overriding in other places.
1a5f60b
to
6fad2be
Compare
LGTM, as discussed this is temporary till the vislib rewrite is merged. |
Backports PR #8877 **Commit 1:** Toggling spy panel no longer throws an error * Original sha: 0de553d * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-10-28T18:06:05Z **Commit 2:** Complete existence check before using handler * Original sha: 6fad2be * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-10-31T14:11:40Z
Backports PR #8877 **Commit 1:** Toggling spy panel no longer throws an error * Original sha: 0de553d * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-10-28T18:06:05Z **Commit 2:** Complete existence check before using handler * Original sha: 6fad2be * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-10-31T14:11:40Z
Backports PR #8877 **Commit 1:** Toggling spy panel no longer throws an error * Original sha: 0de553d * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-10-28T18:06:05Z **Commit 2:** Complete existence check before using handler * Original sha: 6fad2be * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-10-31T14:11:40Z
Complete existence check of highlight-handler, before using it
Backports PR elastic#8877 **Commit 1:** Toggling spy panel no longer throws an error * Original sha: 0de553d * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-10-28T18:06:05Z **Commit 2:** Complete existence check before using handler * Original sha: 6fad2be * Authored by Thomas Neirynck <thomas@elastic.co> on 2016-10-31T14:11:40Z Former-commit-id: c834ee7
Closes #8869.
Also tidied up some linter warnings.