1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/web/ synced 2025-03-16 00:00:03 +01:00
VILLASweb/app/models/entity.js
Markus Grigull 0357a8dc77 Add property timestamp
Start adding periodic polling. Timestamp is displayed in properties
tables.
2015-10-02 01:37:55 +02:00

17 lines
328 B
JavaScript

import Ember from 'ember';
import DS from 'ember-data';
export default DS.Model.extend({
type: DS.attr('string'),
properties: DS.attr(),
poll: function() {
Ember.debug("Poll");
var _this = this;
Ember.run.later(function() {
_this.reload();
_this.poll();
}, 500);
}.observes('didLoad')
});