Ghost/ghost/admin/app/components/gh-activating-list-item.js

23 lines
423 B
JavaScript
Raw Normal View History

2015-02-13 07:22:32 +03:00
import Ember from 'ember';
const {Component, run} = Ember;
export default Component.extend({
tagName: 'li',
classNameBindings: ['active'],
active: false,
linkClasses: null,
click() {
this.$('a').blur();
},
actions: {
setActive(value) {
run.schedule('afterRender', this, function () {
this.set('active', value);
});
}
}
});