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

21 lines
442 B
JavaScript
Raw Normal View History

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