Change options.initial_image to options.initialImage

This commit is contained in:
Chinmay Pandhare
2017-03-14 00:25:09 +05:30
parent 3587e9eca9
commit 732df84378
4 changed files with 13 additions and 13 deletions

View File

@@ -5,7 +5,7 @@ ImageSequencer = function ImageSequencer(options) {
options = options || {};
options.inBrowser = options.inBrowser || typeof window !== 'undefined';
if (options.inBrowser) options.ui = options.ui || require('./UserInterface');
options.initial_image = "";
options.initialImage = "";
var image,
steps = [],
@@ -52,8 +52,8 @@ ImageSequencer = function ImageSequencer(options) {
if (previousStep) {
// connect output of last step to input of this step
previousStep.options.output = function output(image) {
if (sequencer.steps[0].options.initial_image) {
options.initial_image = sequencer.steps[0].options.initial_image;
if (sequencer.steps[0].options.initialImage) {
options.initialImage = sequencer.steps[0].options.initialImage;
}
log('running module "' + name + '"');
// display the image in any available ui
@@ -93,7 +93,7 @@ ImageSequencer = function ImageSequencer(options) {
image.onload = function() {
run(image);
if (callback) callback(image);
options.initial_image = image;
options.initialImage = image;
}
image.src = src;
}