-
Notifications
You must be signed in to change notification settings - Fork 199
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
[lint pass request] listening on a nonexistent or not yet stamped element #991
Comments
I see, so with an element whose template is like: <template>
<template is="dom-if" if="whatever">
<div id="foo"></div>
</template>
</template> And it's declared like: Polymer({
is: 'example-elem',
listeners: {
'foo.tap': 'onFooTapped',
},
onFooTapped() { /* ... */ }
}); This doesn't work because the div doesn't exist when the element is first stamped. |
Another example could be |
...and I would imagine it might be an easy task to add a check for properties/methods on such - eg this.$.elementId.open() - check there's a method open() on the element. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
So much notifications for "nice to have" issues that have never been implemented. Sigh. |
It would be nice to have a check for using
id
of element which is located inside of thedom-if
template inlisteners
object. As of 1.7.0, this causes errors like this:The text was updated successfully, but these errors were encountered: