autofix no-var

This commit is contained in:
Thomas Grainger 2017-04-13 18:08:50 +01:00
parent 31e5d785fe
commit b33f73ac9a
No known key found for this signature in database
GPG key ID: 995EA0A029283160
61 changed files with 699 additions and 698 deletions

View file

@ -14,7 +14,7 @@ import HTMLIngredient from "./HTMLIngredient.js";
* @param {App} app - The main view object for CyberChef.
* @param {Manager} manager - The CyberChef event manager.
*/
var HTMLOperation = function(name, config, app, manager) {
const HTMLOperation = function(name, config, app, manager) {
this.app = app;
this.manager = manager;
@ -24,8 +24,8 @@ var HTMLOperation = function(name, config, app, manager) {
this.config = config;
this.ingList = [];
for (var i = 0; i < config.args.length; i++) {
var ing = new HTMLIngredient(config.args[i], this.app, this.manager);
for (let i = 0; i < config.args.length; i++) {
const ing = new HTMLIngredient(config.args[i], this.app, this.manager);
this.ingList.push(ing);
}
};
@ -47,7 +47,7 @@ HTMLOperation.REMOVE_ICON = "iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABwkl
* @returns {string}
*/
HTMLOperation.prototype.toStubHtml = function(removeIcon) {
var html = "<li class='operation'";
let html = "<li class='operation'";
if (this.description) {
html += " data-container='body' data-toggle='popover' data-placement='auto right'\
@ -77,9 +77,9 @@ HTMLOperation.prototype.toStubHtml = function(removeIcon) {
* @returns {string}
*/
HTMLOperation.prototype.toFullHtml = function() {
var html = "<div class='arg-title'>" + this.name + "</div>";
let html = "<div class='arg-title'>" + this.name + "</div>";
for (var i = 0; i < this.ingList.length; i++) {
for (let i = 0; i < this.ingList.length; i++) {
html += this.ingList[i].toHtml();
}