Removed redundant parameters in ImageSequencer.js (#967)

* Removed redundant parameters in ImageSequencer.js

* Re-added loadImages, deleted loadImage

* Left both loadImage and loadImages in

I think I need more details to the last phrase in the instructions, telling me to remove the export of loadImages, I tried deleting that line and cannot pass the test.
This commit is contained in:
Vajean Stan
2019-04-05 23:03:04 +01:00
committed by Jeffrey Warren
parent 2a0eff41f4
commit 7cf96df1ee

View File

@@ -87,7 +87,7 @@ ImageSequencer = function ImageSequencer(options) {
//tell the UI a step has been removed
}
function removeSteps(index) {
function removeSteps() {
var indices;
var this_ = (this.name == "ImageSequencer") ? this : this.sequencer;
var args = [];
@@ -102,7 +102,7 @@ ImageSequencer = function ImageSequencer(options) {
return this;
}
function insertSteps(image, index, name, o) {
function insertSteps() {
var this_ = (this.name == "ImageSequencer") ? this : this.sequencer;
var args = []
for (var arg in arguments) args.push(arguments[arg]);
@@ -119,7 +119,7 @@ ImageSequencer = function ImageSequencer(options) {
// Config is an object which contains the runtime configuration like progress bar
// information and index from which the sequencer should run
function run(config, t_image, t_from) {
function run(config) {
var progressObj, index = 0;
config = config || { mode: 'no-arg' };
if (config.index) index = config.index;