0

I have event function like this:

 ###*
    Function to show all items   
 ###   
 showAllItemsToggle_: ( e ) ->
    e.stopPropagation()
    e.preventDefault()
    element = e.target
    ....

and it is on tag with href="#"

and only in IE after fire this event is this event not prevented. I think GC will solved problems like this for me.

1 Answers1

0

Older version of Internet Explorer, that is IE8 and below, do not support event.preventDefault. Instead, you will have to set the non-standard event.returnValue to false:

e.returnValue = false;
poke
  • 369,085
  • 72
  • 557
  • 602