Skip to content
Browse files

Merge pull request #69 from dougma/FB-182

FIREBREATH-182: javascript logic fix
  • Loading branch information...
2 parents 2cadcd2 + 45dfb5b commit 71935a67551d2881e8a2d337da4923e8e06f970a @taxilian taxilian committed Jun 21, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 gen_templates/FBControl.htm
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);
}
}

0 comments on commit 71935a6

Please sign in to comment.
Something went wrong with that request. Please try again.