devdocs/assets/javascripts/models/model.js

9 lines
161 B

app.Model = class Model {
constructor(attributes) {
1 year ago
for (var key in attributes) {
var value = attributes[key];
this[key] = value;
}
}
};