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
2015-10-06 21:43:07 +02:00

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