fixes #544 and final changes

Signed-off-by: tech4GT <varun.gupta1798@gmail.com>
This commit is contained in:
tech4GT
2018-12-16 20:01:53 +05:30
parent 3e30c0f7ed
commit 16debae154
6 changed files with 12612 additions and 12629 deletions

View File

@@ -34,15 +34,18 @@ function InsertStep(ref, image, index, name, o) {
};
var UI = ref.events;
// Tell UI that a step has been set up.
o = o || {};
// define the expandSteps function for sequencer
ref.modules[name].expandSteps = function expandSteps(stepsArray) {
for (var step of stepsArray) {
ref.addSteps(step['name'], step['options']);
}
}
// Tell UI that a step has been set up.
o = o || {};
if (!ref.modules[name][1].length) {
UI.onSetup(o.step);
UI.onSetup(o.step, { index: index });
ref.images[image].steps.splice(index, 0, ref.modules[name][0](o, UI));
} else {
ref.modules[name][0](o, UI);