Having both inline and bound event handlers will always cause
confusion.

You could use event.stopImmediatePropagation in the first handler, but
unfortunaly that is only available through jQuery-added listeners
(1.3.1).

On Jan 29, 5:42 pm, 1nd1go <stas.fedo...@gmail.com> wrote:
> Hi all,
>
> I am trying to cancel event propagation in handler I have defined in
> the following manner:
>
> element.onclick = fuction() { /* first handler */ }
>
> I have also defined handler with jQuery: $('element').click( function()
> { /*second handler*/ } )
>
> So the point is I want to prevent invocation of second handler and do
> this only in first handler.
>
> I can't call element.unbind() method in first handler, because it will
> do this forever. I need to discard invocation for concrete case which
> I check in first handler.
>
> Any help will be appreciated!

Reply via email to