mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-12 06:25:51 +03:00
fb239054a0
follow up from #95 - converts components to use ember-cli-shims
22 lines
440 B
JavaScript
22 lines
440 B
JavaScript
import Component from 'ember-component';
|
|
import {schedule} from 'ember-runloop';
|
|
|
|
export default Component.extend({
|
|
tagName: 'li',
|
|
classNameBindings: ['active'],
|
|
active: false,
|
|
linkClasses: null,
|
|
|
|
click() {
|
|
this.$('a').blur();
|
|
},
|
|
|
|
actions: {
|
|
setActive(value) {
|
|
schedule('afterRender', this, function () {
|
|
this.set('active', value);
|
|
});
|
|
}
|
|
}
|
|
});
|