2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-05 08:59:27 +08:00

select-kit refactoring

* better test helper
* more reliable tests
* more consistent use of data-value/data-name/title/aria-label everywhere: header and rows
This commit is contained in:
Joffrey JAFFEUX 2017-12-22 13:08:12 +01:00 committed by GitHub
parent 364e6fdd53
commit 315b9d796d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
60 changed files with 827 additions and 641 deletions

View file

@ -61,7 +61,7 @@ export default Ember.Component.extend(UtilsMixin, PluginApiMixin, DomHelpersMixi
computedContent: null,
limitMatches: 100,
nameChanges: false,
allowsContentReplacement: false,
allowContentReplacement: false,
collectionHeader: null,
init() {
@ -82,7 +82,7 @@ export default Ember.Component.extend(UtilsMixin, PluginApiMixin, DomHelpersMixi
this.addObserver(`content.@each.${this.get("nameProperty")}`, this, this._compute);
}
if (this.get("allowsContentReplacement")) {
if (this.get("allowContentReplacement")) {
this.addObserver(`content.[]`, this, this._compute);
}
},