projects
/
infodrom
/
phone
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1005f09
)
Stop event propagation based on http://www.quirksmode.org/js/events_order.html
author
Joey Schulze
<joey@infodrom.org>
Fri, 25 Dec 2009 16:38:28 +0000
(17:38 +0100)
committer
Joey Schulze
<joey@infodrom.org>
Fri, 25 Feb 2011 17:40:23 +0000
(18:40 +0100)
lib/basics.js
patch
|
blob
|
history
diff --git
a/lib/basics.js
b/lib/basics.js
index
886e103
..
d548e3d
100644
(file)
--- a/
lib/basics.js
+++ b/
lib/basics.js
@@
-14,6
+14,13
@@
function style_adjust(styles)
}
}
}
}
+function stop_propagation(e)
+{
+ if (!e) var e = window.event;
+ e.cancelBubble = true;
+ if (e.stopPropagation) e.stopPropagation();
+}
+
/*
* Small AJAX framework
*/
/*
* Small AJAX framework
*/