Change global variable to document.sequencer_image

This commit is contained in:
Chinmay Pandhare
2017-03-12 13:44:07 +05:30
parent 7557c9ede8
commit f695e650a0
3 changed files with 3 additions and 3 deletions

View File

@@ -74,7 +74,7 @@
$('.add-step').click(function(e) { $('.add-step').click(function(e) {
e.preventDefault(); e.preventDefault();
sequencer.addStep($('.select-module').val()); 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
}); });

View File

@@ -89,7 +89,7 @@ ImageSequencer = function ImageSequencer(options) {
image.onload = function() { image.onload = function() {
run(image); run(image);
if (callback) callback(image); if (callback) callback(image);
document.image = image; document.sequencer_image = image;
} }
image.src = src; image.src = src;
} }

View File

@@ -42,7 +42,7 @@ module.exports = function ImageSelect(options) {
image = new Image(); image = new Image();
image.src = event.target.result; image.src = event.target.result;
document.image = image; document.sequencer_image = image;
el.html(image); // may be redundant el.html(image); // may be redundant
// this is done once per image: // this is done once per image: