From f695e650a070c0f2ac65b773566f38171d1c6917 Mon Sep 17 00:00:00 2001 From: Chinmay Pandhare Date: Sun, 12 Mar 2017 13:44:07 +0530 Subject: [PATCH] Change global variable to document.sequencer_image --- index.html | 2 +- src/ImageSequencer.js | 2 +- src/modules/ImageSelect.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index a4f0fa44..f2da254c 100644 --- a/index.html +++ b/index.html @@ -74,7 +74,7 @@ $('.add-step').click(function(e) { e.preventDefault(); sequencer.addStep($('.select-module').val()); - sequencer.run(document.image); // later we might only run this step, if we can fetch the image output from the previous + sequencer.run(document.sequencer_image); // later we might only run this step, if we can fetch the image output from the previous }); diff --git a/src/ImageSequencer.js b/src/ImageSequencer.js index ed4ae72e..88723dd9 100644 --- a/src/ImageSequencer.js +++ b/src/ImageSequencer.js @@ -89,7 +89,7 @@ ImageSequencer = function ImageSequencer(options) { image.onload = function() { run(image); if (callback) callback(image); - document.image = image; + document.sequencer_image = image; } image.src = src; } diff --git a/src/modules/ImageSelect.js b/src/modules/ImageSelect.js index 29803c34..6532d3db 100644 --- a/src/modules/ImageSelect.js +++ b/src/modules/ImageSelect.js @@ -42,7 +42,7 @@ module.exports = function ImageSelect(options) { image = new Image(); image.src = event.target.result; - document.image = image; + document.sequencer_image = image; el.html(image); // may be redundant // this is done once per image: