Skip to content

Commit

Permalink
Update Module.js (#1090)
Browse files Browse the repository at this point in the history
Added const $ = window.$; at line 19 inside extraManipulation(pixels)
  • Loading branch information
Tudor Anghelina authored and jywarren committed Aug 30, 2019
1 parent 1cc9fd1 commit 3741d67
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/modules/Average/Module.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ 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++];
Expand Down

0 comments on commit 3741d67

Please sign in to comment.