Skip to content
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

STORM-3238: Reduces scope of wrapper, corrects variable #2862

Merged
merged 1 commit into from Oct 4, 2018

Conversation

d2r
Copy link

@d2r d2r commented Oct 3, 2018

https://www.w3schools.com/js/js_this.asp

In a function definition, this refers to the "owner" of the function.

When we wrapped this in an anonymous function, the data that this pointed to changed. So it is a simple fix to pull the variable from the outer scope.

Copy link
Contributor

@kishorvpatil kishorvpatil left a comment

Choose a reason for hiding this comment

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

👍 nice catch @d2r

@asfgit asfgit merged commit ee516ce into apache:master Oct 4, 2018
asfgit pushed a commit that referenced this pull request Oct 4, 2018
…m/d2r/storm into STORM-3238

STORM-3238: The result of log search for topology doesn't show in UI page

This closes #2862
@d2r
Copy link
Author

d2r commented Oct 4, 2018

Thank you @kishorvpatil for the review. I have merged this to master branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants