Converted all modules from CommonJS to ES6

This commit is contained in:
n1474335 2017-03-23 17:52:20 +00:00
parent 0f2a5014be
commit 131b3a83c1
75 changed files with 395 additions and 282 deletions

View file

@ -9,7 +9,7 @@
* @param {string} name - The name of the category.
* @param {boolean} selected - Whether this category is pre-selected or not.
*/
var HTMLCategory = module.exports = function(name, selected) {
var HTMLCategory = function(name, selected) {
this.name = name;
this.selected = selected;
this.opList = [];
@ -48,3 +48,5 @@ HTMLCategory.prototype.toHtml = function() {
html += "</ul></div></div>";
return html;
};
export default HTMLCategory;