mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-30 01:42:29 +03:00
21 lines
442 B
JavaScript
21 lines
442 B
JavaScript
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);
|
|
});
|
|
}
|
|
}
|
|
});
|