mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-09 00:00:01 +01:00
Add polling data every second
This commit is contained in:
parent
1284de9b72
commit
833c61a303
1 changed files with 7 additions and 7 deletions
|
@ -6,12 +6,12 @@ export default DS.Model.extend({
|
|||
properties: DS.attr(),
|
||||
|
||||
poll: function() {
|
||||
Ember.debug("Poll");
|
||||
var _this = this;
|
||||
Ember.run.later( function() {
|
||||
Ember.debug("reload");
|
||||
|
||||
var _this = this;
|
||||
Ember.run.later(function() {
|
||||
_this.reload();
|
||||
_this.poll();
|
||||
}, 500);
|
||||
}.observes('didLoad')
|
||||
_this.reload();
|
||||
_this.poll();
|
||||
}, 1000);
|
||||
}.on('didLoad')
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue