-
Notifications
You must be signed in to change notification settings - Fork 354
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
Enable custom footer event #468
Conversation
b608b9a
to
d957c44
Compare
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.
@billy-addepar We should fix things upstream if we can.
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.
Generally seems good, but let's only use the on
style for tests only. Also, can you squash and make sure the commit message is descriptive?
</div> | ||
`); | ||
} else { | ||
this.on('onTableFooterEvent', callback); |
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.
This style should work all the way through modern Ember versions, we use this in vertical-collection
this.set('rows', generateRows(10, columnCount)); | ||
this.set('footerRows', footerRows); | ||
|
||
if (Ember.VERSION >= '1.13') { // eslint-disable-line no-restricted-globals, no-undef |
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.
Ember.VERSION
is a string. This comparison works right now because 1.13
was the last of the 1.* cycle, so all versions in 2.* are bigger, string-wise. It would fail when 2.13 >= 2.8
for instance. So, we should always use a semver library, or ember-compatibility-helpers
9f0d1f0
to
d410e26
Compare
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.
Looks good!
No description provided.