mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-29 07:09:48 +03:00
48e3bf003d
no issue - https://github.com/ember-cli/eslint-plugin-ember/blob/master/docs/rules/order-in-components.md - https://github.com/ember-cli/eslint-plugin-ember/blob/master/docs/rules/order-in-controllers.md - https://github.com/ember-cli/eslint-plugin-ember/blob/master/docs/rules/order-in-routes.md
22 lines
442 B
JavaScript
22 lines
442 B
JavaScript
import Component from '@ember/component';
|
|
import {schedule} from '@ember/runloop';
|
|
|
|
export default Component.extend({
|
|
active: false,
|
|
classNameBindings: ['active'],
|
|
linkClasses: null,
|
|
tagName: 'li',
|
|
|
|
actions: {
|
|
setActive(value) {
|
|
schedule('afterRender', this, function () {
|
|
this.set('active', value);
|
|
});
|
|
}
|
|
},
|
|
|
|
click() {
|
|
this.$('a').blur();
|
|
}
|
|
});
|