Skip to content

Commit

Permalink
Remove Multiple Downloads (#1428)
Browse files Browse the repository at this point in the history
* Removed event listeners

* Added Unbind

* Removed Event Listener

Co-authored-by: Harsh Khandeparkar <34770591+HarshKhandeparkar@users.noreply.github.com>
Co-authored-by: Jeffrey Warren <jeff@unterbahn.com>
  • Loading branch information
3 people committed Jan 15, 2020
1 parent cded945 commit 423422a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/lib/defaultHtmlStepUi.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,8 @@ function DefaultHtmlStepUi(_sequencer, options) {
$stepAll('.load-spin').hide();
$step('.load').hide();

$stepAll('.download-btn').off('click');

step.imgElement.src = (step.name == 'load-image') ? step.output.src : step.output;
var imgthumbnail = $step('.img-thumbnail').getDomElem();
for (let index = 0; index < step.linkElements.length; index++) {
Expand Down

0 comments on commit 423422a

Please sign in to comment.