1
0
Fork 0
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:
Markus Grigull 2015-10-02 02:08:35 +02:00
parent 1284de9b72
commit 833c61a303

View file

@ -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')
});