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
Possible bug with the aura closure view #54
Comments
Have you found out anything more about this? |
nope. What I feel is about the closure being used inside another class makes the bind call on that particular class. That is a guess, not really something I found. |
It is true that each closure template has $this bound to the View instance. |
So closures will not work the way expected makes it not usable. |
How is that not expected? Normally a closure has no $this to begin with. |
@pmjones I am wrong. I did a $view_registry->set('hello', function ($name) {
return "Hello {$name}";
}); Which was entirely wrong. May be the templates I created was old ones or may be via copy and paste got into it. |
I copied from the tests 2441295 . My bad. |
Ahh yes, I can see where that would be a problem. I should document that function params will not work with closures. |
Hi Paul,
I was just playing around to learn and implement ADR in aura. See https://github.com/harikt/adr/commit/f7f79e898d182c4fb9e0222044b9d1224e3498ad
In that I was writing a test on the render functionality done with aura/view. I am seeing something like
This sounds to me that there is some sort of bug in the View.
The text was updated successfully, but these errors were encountered: