Bug Tracker

Opened 8 years ago

Closed 8 years ago

#1370 closed enhancement (wontfix)

prevent default action

Reported by: yangjh02@… Owned by: stefan
Priority: trivial Milestone: 1.1.4
Component: interface Version: 1.1.3
Keywords: Cc:
Blocked by: Blocking:


In lots of plac of interface library, following code is used,


if (window.event) {

window.event.cancelBubble = true; window.event.returnValue = false;

} else {

e.preventDefault(); e.stopPropagation();


return false;


I find that this is not necessary, because jquery already normalized the event object, just safely use e.preventDefault() and remove the the quoted code, it works in IE and firefox. This make the code cleaner.

Change History (1)

comment:1 Changed 8 years ago by scott.gonzal

  • Resolution set to wontfix
  • Status changed from new to closed

Interface is no longer supported; consider switching to jQuery UI.

Note: See TracTickets for help on using tickets.