-
Notifications
You must be signed in to change notification settings - Fork 2k
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
add behaviors
to instances too
#4397
Conversation
lib/legacy/class.html
Outdated
@@ -63,6 +63,7 @@ | |||
behaviors = superBehaviors.concat(behaviors); | |||
} | |||
klass.behaviors = behaviors; | |||
klass.prototype.behaviors = behaviors; |
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.
not sure if this should belong to the mixin or the legacy element, same for properties
.
Should I just have two getters for properties
and behaviors
in the LegacyElementMixin?
lib/legacy/class.html
Outdated
@@ -63,6 +63,7 @@ | |||
behaviors = superBehaviors.concat(behaviors); | |||
} | |||
klass.behaviors = behaviors; |
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.
Let's remove this off the class if we're putting it on the prototype.
Fixes #4396, PolymerElements/iron-a11y-keys-behavior#69