mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-23 02:41:50 +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);
|
|
});
|
|
}
|
|
}
|
|
});
|