equal
deleted
inserted
replaced
1 import Ember from 'ember'; |
1 import Ember from 'ember'; |
|
2 |
|
3 const { getOwner } = Ember; |
2 |
4 |
3 export default Ember.Component.extend({ |
5 export default Ember.Component.extend({ |
4 didInsertElement: function(){ |
6 didInsertElement: function(){ |
5 var _this = this; |
7 var _this = this; |
6 |
8 |
7 if (this.get('container').lookup('controller:application').date !== null){ |
9 if (getOwner(this).lookup('controller:application').date !== null){ |
8 this.highlightQuery(this.get('container').lookup('controller:application').date); |
10 this.highlightQuery(getOwner(this).lookup('controller:application').date); |
9 } |
11 } |
10 |
12 |
11 var isMouseDown = false, |
13 var isMouseDown = false, |
12 isHighlighted; |
14 isHighlighted; |
13 Ember.$("#chrono-table li").mousedown(function () { |
15 Ember.$("#chrono-table li").mousedown(function () { |