Side navigation
#1370 closed enhancement (wontfix)
Opened July 07, 2007 03:28PM UTC
Closed March 31, 2008 02:22AM UTC
prevent default action
Reported by: | yangjh02@gmail.com | Owned by: | stefan |
---|---|---|---|
Priority: | trivial | Milestone: | 1.1.4 |
Component: | interface | Version: | 1.1.3 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
In lots of plac of interface library, following code is used,
---quote---
if (window.event) {
window.event.cancelBubble = true;
window.event.returnValue = false;
} else {
e.preventDefault();
e.stopPropagation();
}
return false;
--endquote----
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.
Attachments (0)
Change History (1)
Changed March 31, 2008 02:22AM UTC by comment:1
resolution: | → wontfix |
---|---|
status: | new → closed |
Interface is no longer supported; consider switching to jQuery UI.