equal
deleted
inserted
replaced
7 model: null, |
7 model: null, |
8 |
8 |
9 window: '', |
9 window: '', |
10 playing: false, |
10 playing: false, |
11 progress: 0, // In Milliseconds |
11 progress: 0, // In Milliseconds |
12 progressObserver: Ember.observer('progress', function() { |
|
13 console.log('Ember.observer progress'); |
|
14 }), |
|
15 reduce: false, |
12 reduce: false, |
16 |
13 |
17 init: function() { |
14 init: function() { |
18 this.on('reset', Ember.run.bind(this, this.get('reset'))); |
15 this.on('reset', Ember.run.bind(this, this.get('reset'))); |
19 }, |
16 }, |
20 |
17 |
|
18 setProgress: function(time) { |
|
19 this.set('progress', time); |
|
20 }, |
|
21 |
|
22 play: function(id) { |
|
23 this.set('item', id); |
|
24 this.set('playing', true); |
|
25 }, |
|
26 |
|
27 pause: function() { |
|
28 this.set('playing', false); |
|
29 }, |
|
30 |
21 reset: function(id) { |
31 reset: function(id) { |
22 this.set('item', id); |
32 this.set('item', id); |
23 } |
33 } |
24 }); |
34 }); |