Skip to content
This repository has been archived by the owner on Apr 2, 2023. It is now read-only.

Remove handler for an event #193

Open
gtopsis opened this issue Feb 5, 2018 · 5 comments
Open

Remove handler for an event #193

gtopsis opened this issue Feb 5, 2018 · 5 comments

Comments

@gtopsis
Copy link

gtopsis commented Feb 5, 2018

I know that this tool is not maintained anymore but maybe someone is interested to help, so...

the method addHandler adds the same function as a handler for an event every time the page is loaded so I would like to know if there is a way to remove a handler.

Any tip would help.

@SHUwangwei
Copy link

Can I ask you a question about the starting of annotorious?
I read the guide of annotorious at http://annotorious.github.io/getting-started.html.
so I add the code at my page head:

<script type="text/javascript" src="annotorious.min.js"></script> But I don't know why it doesn't work? Can you help me? Thanks!

@SHUwangwei
Copy link

I followed exactly the instructions on the website: http://annotorious.github.io/getting-started.html.
This is the head of my code:

<script type="text/javascript" src="js/annotorious.min.js"></script> But it didn't work. I am so confused.

rsimon pushed a commit that referenced this issue Apr 9, 2018
harshalitalele added a commit to harshalitalele/annotorious that referenced this issue Apr 12, 2018
harshalitalele added a commit to harshalitalele/annotorious that referenced this issue Apr 12, 2018
rsimon pushed a commit that referenced this issue Apr 17, 2018
@jimdeng92
Copy link

I have the same problem now. Has your problem been solved? Please reply to me

@stan-sack
Copy link

@aaaxiu the way i've been dealing with this is passing a generic handler to annotorious:

window.anno.addHandler("onAnnotationCreated", annotation =>
                    this.onAnnotationCreated(annotation)
                )

then I update the value of this.onAnnotationCreated when i want to change the callback. Not ideal but its kinda works

@adeelhussain
Copy link

The issue is removeHandler is added but is not exposed!
I just have created a new PR #215 which is exposing that method.

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

No branches or pull requests

5 participants