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 HTMLOperation = require("./HTMLOperation.js"),
Sortable = require("sortablejs");
import HTMLOperation from "./HTMLOperation.js";
import Sortable from "sortablejs";
/**
@ -10,10 +10,10 @@ var HTMLOperation = require("./HTMLOperation.js"),
* @license Apache-2.0
*
* @constructor
* @param {HTMLApp} app - The main view object for CyberChef.
* @param {App} app - The main view object for CyberChef.
* @param {Manager} manager - The CyberChef event manager.
*/
var RecipeWaiter = module.exports = function(app, manager) {
var RecipeWaiter = function(app, manager) {
this.app = app;
this.manager = manager;
this.removeIntent = false;
@ -424,3 +424,5 @@ RecipeWaiter.prototype.opAdd = function(e) {
RecipeWaiter.prototype.opRemove = function(e) {
window.dispatchEvent(this.manager.statechange);
};
export default RecipeWaiter;