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

methods can be find in each, but there are in this.parent #2176

Closed
1 of 7 tasks
fsy0718 opened this issue Dec 25, 2016 · 1 comment
Closed
1 of 7 tasks

methods can be find in each, but there are in this.parent #2176

fsy0718 opened this issue Dec 25, 2016 · 1 comment

Comments

@fsy0718
Copy link

fsy0718 commented Dec 25, 2016

Help us to manage our issues by answering the following:

  1. Describe your issue:

I use riot.Tag to create my tags, when there are each in my template and each need to immediately execute the function, this function will not exist, but in this.parent there will be this method

  1. Can you reproduce the issue?

Post the link using one of our bug report templates:

  1. On which browser/OS does the issue appear?
    chrome 55
  2. Which version of Riot does it affect?
    3.0.5
  3. How would you tag this issue?
  • Question
  • Bug
  • Discussion
  • Feature request
  • Tip
  • Enhancement
  • Performance

image

when I attach functions to this, it can be find

@GianlucaGuarini
Copy link
Member

Please use the parent property of the nested tags http://plnkr.co/edit/RtAIpEC8L830YQ6lH874?p=preview

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

No branches or pull requests

2 participants