mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-05 16:00:01 +01:00
Moved the .remove to UserInterface.js
This commit is contained in:
6
dist/image-sequencer.js
vendored
6
dist/image-sequencer.js
vendored
@@ -184230,7 +184230,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);
|
||||
}
|
||||
@@ -184317,7 +184317,9 @@ module.exports = function UserInterface(options) {
|
||||
}
|
||||
|
||||
// method to remove the UI for a given method, and remove the step
|
||||
function remove() {}
|
||||
function remove() {
|
||||
$('div#sequencer-'+options.id).remove();
|
||||
}
|
||||
|
||||
// method to reorder steps, and update the UI
|
||||
//function move() {}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -19,7 +19,9 @@ module.exports = function UserInterface(options) {
|
||||
}
|
||||
|
||||
// method to remove the UI for a given method, and remove the step
|
||||
function remove() {}
|
||||
function remove() {
|
||||
$('div#sequencer-'+options.id).remove();
|
||||
}
|
||||
|
||||
// method to reorder steps, and update the UI
|
||||
//function move() {}
|
||||
|
||||
Reference in New Issue
Block a user