forked from jywarren/image-sequencer
-
Notifications
You must be signed in to change notification settings - Fork 210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove Multiple Downloads #1428
Merged
Merged
Changes from 8 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
3e2a205
Removed event listeners
ataata107 09662d1
Merge branch 'main' into download-btn
ataata107 15c91e5
Merge branch 'main' into download-btn
ataata107 46b92d4
Merge branch 'main' into download-btn
harshkhandeparkar e3e6b36
Merge branch 'main' into download-btn
ataata107 5894de9
Merge branch 'download-btn' of https://github.com/ataata107/image-seq…
ataata107 055d01f
Added Unbind
ataata107 58cdda7
Merge branch 'main' into download-btn
ataata107 5fe3141
Merge branch 'main' into download-btn
harshkhandeparkar 423d98d
Merge branch 'main' into download-btn
ataata107 4ef355c
Merge branch 'main' into download-btn
ataata107 747a8ab
Removed Event Listener
ataata107 64bfab0
Merge branch 'download-btn' of https://github.com/ataata107/image-seq…
ataata107 f68c177
Merge branch 'main' into download-btn
jywarren File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't it be better to use
.off('click')
instead ofunbind
?unbind
will remove all the event handlers but we only want the click event handler to be removed.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, did you find out why
$stepAll
is used here? This is a bit confusing. Does it work with just$step
? If yes, then it would be better to use$step
instead of$stepAll
.Wait, the error could be caused because of
$stepAll
. We want to add a download listener to the current step but$stepAll
will add a listener to every step each time a new step is added. So every time a step is added, an extra listener will be added to the older steps. If I am not wrong then changing$stepAll
to$step
withoutunbind
oroff
should fix everything.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changing it to
$step
didn't work.Isn't
$stepAll
derived fromscopeSelectorAll
which should basically mean to select all the instances of the element present inside the scope (i.e in the current step). By that shouldn't$stepAll
refers to the all the elements in the current step.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh yeah! I guess I forgot myself. Lol. I was the one who added
scopeQuery
😅.Okay then your code should work fine. Will review again in a min.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should I revert back to off(‘click) in this one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I think you should. Sorry for the late response.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done