Skip to content

Commit f431515

Browse files
tech4GTjywarren
authored andcommitted
fix remove step UI (#288)
* fix remove step UI Signed-off-by: tech4GT <[email protected]> * 2.1.0
1 parent de20254 commit f431515

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/lib/defaultHtmlSequencerUi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function DefaultHtmlSequencerUi(_sequencer, options) {
2727

2828
function removeStepUi() {
2929
var index = $(removeStepSel).index(this) + 1;
30-
sequencer.removeSteps(index).run({index : sequencer.images.image1.steps.length-1});
30+
sequencer.removeSteps(index).run({index : index-1});
3131
// remove from URL hash too
3232
setUrlHashParameter("steps", sequencer.toString());
3333
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "image-sequencer",
3-
"version": "2.0.0",
3+
"version": "2.1.0",
44
"description": "A modular JavaScript image manipulation library modeled on a storyboard.",
55
"main": "src/ImageSequencer.js",
66
"scripts": {

0 commit comments

Comments
 (0)