projects
/
infodrom
/
phone
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Stop event propagation based on http://www.quirksmode.org/js/events_order.html
[infodrom/phone]
/
lib
/
basics.js
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
*/