mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-16 00:00:03 +01:00
15 lines
309 B
JavaScript
15 lines
309 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() {
|
|
var _this = this;
|
|
Ember.run.later( function() {
|
|
_this.reload();
|
|
_this.poll();
|
|
}, 1000);
|
|
}.on('didLoad')
|
|
});
|