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

add behaviors to instances too #4397

Merged
merged 5 commits into from
Mar 9, 2017
Merged

add behaviors to instances too #4397

merged 5 commits into from
Mar 9, 2017

Conversation

valdrinkoshi
Copy link
Member

@valdrinkoshi valdrinkoshi commented Mar 9, 2017

@valdrinkoshi valdrinkoshi changed the title add instance behaviors add behaviors to instances too Mar 9, 2017
@@ -63,6 +63,7 @@
behaviors = superBehaviors.concat(behaviors);
}
klass.behaviors = behaviors;
klass.prototype.behaviors = behaviors;
Copy link
Member Author

@valdrinkoshi valdrinkoshi Mar 9, 2017

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?

@@ -63,6 +63,7 @@
behaviors = superBehaviors.concat(behaviors);
}
klass.behaviors = behaviors;
Copy link
Contributor

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.

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

Successfully merging this pull request may close these issues.

3 participants