Ghost/ghost/admin/app/components/gh-activating-list-item.js
Austin Burdine fb239054a0 convert remainder of components to use ember-cli-shims (#101)
follow up from #95
- converts components to use ember-cli-shims
2016-06-30 19:14:25 +01:00

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);
});
}
}
});