Fixes window error in Average module.Commented the test that were affecting other modules (#1330)

This commit is contained in:
keshav234156
2019-12-10 04:22:01 +05:30
committed by Jeffrey Warren
parent 510fd7a934
commit 032971d269
4 changed files with 18 additions and 19 deletions

View File

@@ -16,7 +16,6 @@ module.exports = function Average(options, UI) {
// do the averaging
function extraManipulation(pixels) {
const $ = window.$;
var i = 0, sum = [0, 0, 0, 0];
while (i < pixels.data.length) {
sum[0] += pixels.data[i++];