mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-14 04:10:04 +01:00
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:
committed by
Jeffrey Warren
parent
2a0eff41f4
commit
7cf96df1ee
@@ -87,7 +87,7 @@ ImageSequencer = function ImageSequencer(options) {
|
|||||||
//tell the UI a step has been removed
|
//tell the UI a step has been removed
|
||||||
}
|
}
|
||||||
|
|
||||||
function removeSteps(index) {
|
function removeSteps() {
|
||||||
var indices;
|
var indices;
|
||||||
var this_ = (this.name == "ImageSequencer") ? this : this.sequencer;
|
var this_ = (this.name == "ImageSequencer") ? this : this.sequencer;
|
||||||
var args = [];
|
var args = [];
|
||||||
@@ -102,7 +102,7 @@ ImageSequencer = function ImageSequencer(options) {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
function insertSteps(image, index, name, o) {
|
function insertSteps() {
|
||||||
var this_ = (this.name == "ImageSequencer") ? this : this.sequencer;
|
var this_ = (this.name == "ImageSequencer") ? this : this.sequencer;
|
||||||
var args = []
|
var args = []
|
||||||
for (var arg in arguments) args.push(arguments[arg]);
|
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
|
// Config is an object which contains the runtime configuration like progress bar
|
||||||
// information and index from which the sequencer should run
|
// information and index from which the sequencer should run
|
||||||
function run(config, t_image, t_from) {
|
function run(config) {
|
||||||
var progressObj, index = 0;
|
var progressObj, index = 0;
|
||||||
config = config || { mode: 'no-arg' };
|
config = config || { mode: 'no-arg' };
|
||||||
if (config.index) index = config.index;
|
if (config.index) index = config.index;
|
||||||
|
|||||||
Reference in New Issue
Block a user