From f69f8461a7ed0352b21922fa86a8f6d725ad6cd1 Mon Sep 17 00:00:00 2001 From: Chinmay Pandhare Date: Tue, 5 Sep 2017 19:45:06 +0530 Subject: [PATCH] Remove const --- dist/image-sequencer.js | 14 +++++++------- src/modules/Crop/Module.js | 2 +- src/modules/DecodeQr/Module.js | 2 +- src/modules/FisheyeGl/Module.js | 2 +- src/modules/GreenChannel/Module.js | 2 +- src/modules/Invert/Module.js | 2 +- src/modules/NdviRed/Module.js | 2 +- src/modules/SegmentedColormap/Module.js | 2 +- 8 files changed, 14 insertions(+), 14 deletions(-) diff --git a/dist/image-sequencer.js b/dist/image-sequencer.js index 786b81ea..65653db1 100644 --- a/dist/image-sequencer.js +++ b/dist/image-sequencer.js @@ -38590,7 +38590,7 @@ module.exports = function Crop(input,options,callback) { // Tell the UI that the step has been triggered UI.onDraw(options.step); - const step = this; + var step = this; require('./Crop')(input,options,function(out,format){ @@ -38669,7 +38669,7 @@ module.exports = function DoNothing(options,UI) { UI.onDraw(options.step); - const step = this; + var step = this; getPixels(input.src,function(err,pixels){ @@ -38736,7 +38736,7 @@ module.exports = function DoNothing(options,UI) { // Tell the UI that the step is being drawn UI.onDraw(options.step); - const step = this; + var step = this; if (!options.inBrowser) { // This module is only for browser this.output = input; @@ -38884,7 +38884,7 @@ module.exports = function GreenChannel(options,UI) { // Tell UI that a step is being drawn UI.onDraw(options.step); - const step = this; + var step = this; function changePixel(r, g, b, a) { return [0, g, 0, a]; @@ -38948,7 +38948,7 @@ module.exports = function GreenChannel(options,UI) { // Tell UI that a step is being drawn. UI.onDraw(options.step); - const step = this; + var step = this; function changePixel(r, g, b, a) { return [255-r, 255-g, 255-b, a]; @@ -39009,7 +39009,7 @@ module.exports = function NdviRed(options,UI) { // Tell the UI that a step is being drawn. UI.onDraw(options.step); - const step = this; + var step = this; function changePixel(r, g, b, a) { var ndvi = (b - r) / (1.00 * b + r); @@ -39069,7 +39069,7 @@ module.exports = function SegmentedColormap(options,UI) { // Tell the UI that the step is being drawn UI.onDraw(options.step); - const step = this; + var step = this; function changePixel(r, g, b, a) { var ndvi = (b - r) / (r + b); diff --git a/src/modules/Crop/Module.js b/src/modules/Crop/Module.js index 056ebaf5..4d901a75 100644 --- a/src/modules/Crop/Module.js +++ b/src/modules/Crop/Module.js @@ -27,7 +27,7 @@ // Tell the UI that the step has been triggered UI.onDraw(options.step); - const step = this; + var step = this; require('./Crop')(input,options,function(out,format){ diff --git a/src/modules/DecodeQr/Module.js b/src/modules/DecodeQr/Module.js index 66b2532b..46bdca40 100644 --- a/src/modules/DecodeQr/Module.js +++ b/src/modules/DecodeQr/Module.js @@ -18,7 +18,7 @@ module.exports = function DoNothing(options,UI) { UI.onDraw(options.step); - const step = this; + var step = this; getPixels(input.src,function(err,pixels){ diff --git a/src/modules/FisheyeGl/Module.js b/src/modules/FisheyeGl/Module.js index f1ae295c..09346835 100644 --- a/src/modules/FisheyeGl/Module.js +++ b/src/modules/FisheyeGl/Module.js @@ -17,7 +17,7 @@ module.exports = function DoNothing(options,UI) { // Tell the UI that the step is being drawn UI.onDraw(options.step); - const step = this; + var step = this; if (!options.inBrowser) { // This module is only for browser this.output = input; diff --git a/src/modules/GreenChannel/Module.js b/src/modules/GreenChannel/Module.js index c2d008b0..b615d5eb 100644 --- a/src/modules/GreenChannel/Module.js +++ b/src/modules/GreenChannel/Module.js @@ -15,7 +15,7 @@ module.exports = function GreenChannel(options,UI) { // Tell UI that a step is being drawn UI.onDraw(options.step); - const step = this; + var step = this; function changePixel(r, g, b, a) { return [0, g, 0, a]; diff --git a/src/modules/Invert/Module.js b/src/modules/Invert/Module.js index 2aa9d5c2..0c8f4a48 100644 --- a/src/modules/Invert/Module.js +++ b/src/modules/Invert/Module.js @@ -17,7 +17,7 @@ module.exports = function GreenChannel(options,UI) { // Tell UI that a step is being drawn. UI.onDraw(options.step); - const step = this; + var step = this; function changePixel(r, g, b, a) { return [255-r, 255-g, 255-b, a]; diff --git a/src/modules/NdviRed/Module.js b/src/modules/NdviRed/Module.js index b73d42bd..65851898 100644 --- a/src/modules/NdviRed/Module.js +++ b/src/modules/NdviRed/Module.js @@ -15,7 +15,7 @@ module.exports = function NdviRed(options,UI) { // Tell the UI that a step is being drawn. UI.onDraw(options.step); - const step = this; + var step = this; function changePixel(r, g, b, a) { var ndvi = (b - r) / (1.00 * b + r); diff --git a/src/modules/SegmentedColormap/Module.js b/src/modules/SegmentedColormap/Module.js index a9d678d8..c4f6facd 100644 --- a/src/modules/SegmentedColormap/Module.js +++ b/src/modules/SegmentedColormap/Module.js @@ -12,7 +12,7 @@ module.exports = function SegmentedColormap(options,UI) { // Tell the UI that the step is being drawn UI.onDraw(options.step); - const step = this; + var step = this; function changePixel(r, g, b, a) { var ndvi = (b - r) / (r + b);