Skip to content
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

Double click on marker handler to delete it #194

Merged
merged 4 commits into from
Jun 4, 2014
Merged

Double click on marker handler to delete it #194

merged 4 commits into from
Jun 4, 2014

Conversation

pitrackster
Copy link

No description provided.


// Delete Mark on handler dble click
this.drawer.on('mark-dblclick', function(e) {
var mark = my.markers[e.target.parentNode.id];
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My comment is the same as before: the wavesurfer object shouldn't know anything about marks implementation. We should pass the mark id as the event argument instead.

katspaugh added a commit that referenced this pull request Jun 4, 2014
Double click on marker handler to delete it
@katspaugh katspaugh merged commit 4c7f014 into katspaugh:master Jun 4, 2014
@katspaugh
Copy link
Owner

Merged, thank you! Sorry I've been missing your last commit for so long.

@pitrackster
Copy link
Author

You're welcome !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants