From f4315159a9b4dfcc2433160d8da3a4e349f39a77 Mon Sep 17 00:00:00 2001 From: Varun Gupta Date: Sat, 9 Jun 2018 01:16:32 +0530 Subject: [PATCH] fix remove step UI (#288) * fix remove step UI Signed-off-by: tech4GT * 2.1.0 --- examples/lib/defaultHtmlSequencerUi.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/lib/defaultHtmlSequencerUi.js b/examples/lib/defaultHtmlSequencerUi.js index a3858ba902..96b9543f46 100644 --- a/examples/lib/defaultHtmlSequencerUi.js +++ b/examples/lib/defaultHtmlSequencerUi.js @@ -27,7 +27,7 @@ function DefaultHtmlSequencerUi(_sequencer, options) { function removeStepUi() { var index = $(removeStepSel).index(this) + 1; - sequencer.removeSteps(index).run({index : sequencer.images.image1.steps.length-1}); + sequencer.removeSteps(index).run({index : index-1}); // remove from URL hash too setUrlHashParameter("steps", sequencer.toString()); } diff --git a/package.json b/package.json index 622077a0bb..3aa53ca8b9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "image-sequencer", - "version": "2.0.0", + "version": "2.1.0", "description": "A modular JavaScript image manipulation library modeled on a storyboard.", "main": "src/ImageSequencer.js", "scripts": {