[jQuery] properly unbinding events will give u $5 if you can figure it out

[jQuery] properly unbinding events will give u $5 if you can figure it out


hi guys is me again. I ran into a problem and haven't found out a solution.
Anyways, here is the problem. when the page load, a function begin() is
called. When u right click on the text, the iniMenu() funciton is called.
When the iniMenu() is trigger it unbinds all events:
$("span[@id^=eip-]").unbind();
it then binds a click event to "edit", "add bug", and "cancel".
when the edit button is triggered, the edit() is called which then
initialize tiny_mce editor, then again, do a
$("span[@id^=eip-]").unbind(); I also tried $("body").unbind(); but no
result.
What I'm trying to do is when tiny_mce is opened, I don't want any other
events to still be bounded. For instance, when tiny_mce is opened, I don't
want user to be able to right click on the text and open up another instance
of tiny_mce.
If you could help me find a solution, I will immediately paypal u $5. =)
the script itself is here:
https://crux.baker.edu/~thuynh01/eip/static_pages/eip.js
the page is here:
https://crux.baker.edu/~thuynh01/eip/test.html
--
View this message in context: http://www.nabble.com/properly-unbinding-events-will-give-u-%245-if-you-can-figure-it-out-tf2916367.html#a8149943
Sent from the JQuery mailing list archive at Nabble.com.
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/