Moved the .remove to UserInterface.js

This commit is contained in:
Chinmay Pandhare
2017-03-30 16:28:01 +05:30
parent f5ac3f4407
commit 4cf5bfacd2
3 changed files with 8 additions and 4 deletions

View File

@@ -84,7 +84,7 @@ ImageSequencer = function ImageSequencer(options) {
for (i=0;i<steps.length;i++) {
if (steps[i].options.id == id && steps[i].options.name != 'image-select'){
console.log('removing step "'+steps[i].options.name+'"');
if (options.inBrowser) $('div#sequencer-'+id).remove();
if (options.inBrowser) steps[i].options.ui.remove();
steps.splice(i,1);
run(options.initialImage);
}