From 75e9f752af172f3448a58ce7aff62bf33ed28a70 Mon Sep 17 00:00:00 2001 From: Joey Schulze Date: Fri, 25 Dec 2009 17:38:28 +0100 Subject: [PATCH 1/1] Stop event propagation based on http://www.quirksmode.org/js/events_order.html --- lib/basics.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/basics.js b/lib/basics.js index 886e103..d548e3d 100644 --- 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 */ -- 2.20.1