1
0
Fork 0
mirror of https://github.com/TryGhost/Ghost-Admin.git synced 2023-12-14 02:33:04 +01:00
Ghost-Admin/app/components/gh-activating-list-item.js

23 lines
457 B
JavaScript
Raw Normal View History

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