Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

try to avert issues like FB-182 #69

Merged
merged 1 commit into from about 2 years ago

2 participants

doug mansell Richard Bateman
doug mansell
Collaborator
dougma commented

IE9 (in some modes) adds support for addEventListener, but Firebreath
requires events to be attached via attachEvent - so check for that
method first.

doug mansell dougma try to avert issues like FB-182
IE9 (in some modes) adds support for addEventListener, but Firebreath
requires events to be attached via attachEvent - so check for that
method first.
45dfb5b
Richard Bateman taxilian merged commit 71935a6 into from
Richard Bateman taxilian closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Jun 21, 2012
doug mansell dougma try to avert issues like FB-182
IE9 (in some modes) adds support for addEventListener, but Firebreath
requires events to be attached via attachEvent - so check for that
method first.
45dfb5b
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. +3 3 gen_templates/FBControl.htm
6 gen_templates/FBControl.htm 100755 → 100644
@@ -17,10 +17,10 @@
17 17
18 18 function addEvent(obj, name, func)
19 19 {
20   - if (window.addEventListener) {
21   - obj.addEventListener(name, func, false);
22   - } else {
  20 + if (obj.attachEvent) {
23 21 obj.attachEvent("on"+name, func);
  22 + } else {
  23 + obj.addEventListener(name, func, false);
24 24 }
25 25 }
26 26

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.