不要怂,就是干,撸起袖子干!

Commit 194ff2c7 by Felix Becker Committed by Jan Aagaard Meier

ES6 refactor: Model (#6039)

* ES6 refactor of model.js

* ES6 refactor of attribute.js

classes, export default
1 parent 6177a95d
Showing with 6 additions and 2 deletions
'use strict'; 'use strict';
var Attribute = function(options) { class Attribute {
constructor(options) {
if (options.type === undefined) options = {type: options}; if (options.type === undefined) options = {type: options};
this.type = options.type; this.type = options.type;
}; }
}
module.exports = Attribute; module.exports = Attribute;
module.exports.Attribute = Attribute;
module.exports.default = Attribute;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!