simple question: prototype how to remove Event observer

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • john_woo

    simple question: prototype how to remove Event observer

    Hi,

    I'm using prototype 1.6 for observer/attachEventHand ler, like

    Event.observe(m yDivId,'mouseup ', myFunction);

    I'm wondering how to remove or stop (or activate/deactivate) this
    observer when condition matched?

    Also how to present event was used/observed by other observer?
    The Event.stop(e) inside myFunction doesn't seem to help with this.

    --
    Thanks
    John
  • VK

    #2
    Re: simple question: prototype how to remove Event observer

    On Apr 17, 5:44 pm, john_woo <john_...@canad a.comwrote:
    Hi,
    >
    I'm using prototype 1.6 for observer/attachEventHand ler, like
    >
    Event.observe(m yDivId,'mouseup ', myFunction);
    >
    I'm wondering how to remove or stop (or activate/deactivate) this
    observer when condition matched?
    By typing in "prototype Event observer" in Google and by pressing "I'm
    Feeling Lucky" you arrive to


    and in the left menu among other Event methods you see


    Comment

    Working...