Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

try to avert issues like FB-182 #69

Merged
merged 1 commit into from Jun 21, 2012
Jump to file or symbol
Failed to load files and symbols.
+3 −3
Split
View
6 gen_templates/FBControl.htm 100755 → 100644
@@ -17,10 +17,10 @@
function addEvent(obj, name, func)
{
- if (window.addEventListener) {
- obj.addEventListener(name, func, false);
- } else {
+ if (obj.attachEvent) {
obj.attachEvent("on"+name, func);
+ } else {
+ obj.addEventListener(name, func, false);
}
}