2015-02-13 07:22:32 +03:00
|
|
|
import Ember from 'ember';
|
2015-05-27 23:10:47 +03:00
|
|
|
|
2015-12-15 14:09:34 +03:00
|
|
|
const {Component, run} = Ember;
|
2015-10-28 14:36:45 +03:00
|
|
|
|
|
|
|
export default Component.extend({
|
2014-04-02 06:09:28 +04:00
|
|
|
tagName: 'li',
|
|
|
|
classNameBindings: ['active'],
|
2014-12-10 19:31:40 +03:00
|
|
|
active: false,
|
2015-05-27 23:10:47 +03:00
|
|
|
linkClasses: null,
|
2014-12-10 19:31:40 +03:00
|
|
|
|
2015-12-15 14:09:34 +03:00
|
|
|
click() {
|
2014-12-10 19:31:40 +03:00
|
|
|
this.$('a').blur();
|
2015-12-15 14:09:34 +03:00
|
|
|
},
|
2015-07-09 00:08:36 +03:00
|
|
|
|
|
|
|
actions: {
|
2015-10-28 14:36:45 +03:00
|
|
|
setActive(value) {
|
|
|
|
run.schedule('afterRender', this, function () {
|
2015-07-09 00:08:36 +03:00
|
|
|
this.set('active', value);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
2014-04-02 06:09:28 +04:00
|
|
|
});
|