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

@ -1,5 +1,5 @@
var Dish = require("./Dish.js"),
Ingredient = require("./Ingredient.js");
import Dish from "./Dish.js";
import Ingredient from "./Ingredient.js";
/**
@ -13,7 +13,7 @@ var Dish = require("./Dish.js"),
* @param {string} operationName
* @param {Object} operationConfig
*/
var Operation = module.exports = function(operationName, operationConfig) {
var Operation = function(operationName, operationConfig) {
this.name = operationName;
this.description = "";
this.inputType = -1;
@ -159,3 +159,5 @@ Operation.prototype.isDisabled = function() {
Operation.prototype.isFlowControl = function() {
return this.flowControl;
};
export default Operation;