Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

addEventListener requires the optional third argument on old versions…

… of Opera
  • Loading branch information...
commit a25ce962075ede48b7d3f678eb599ff4ab48c06d 1 parent 578c8c8
Niels Leenheer NielsLeenheer authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 index.html
6 index.html
View
@@ -1774,7 +1774,7 @@
var correct = document.createElement('a');
if (correct.addEventListener) {
- correct.addEventListener('click', function() { parent.confirmUseragent.call(parent); });
+ correct.addEventListener('click', function() { parent.confirmUseragent.call(parent); }, true);
} else {
correct.attachEvent('onclick', function() { parent.confirmUseragent.call(parent); });
}
@@ -1784,7 +1784,7 @@
var wrong = document.createElement('a');
if (correct.addEventListener) {
- wrong.addEventListener('click', function() { parent.reportUseragent.call(parent); });
+ wrong.addEventListener('click', function() { parent.reportUseragent.call(parent); }, true);
} else {
wrong.attachEvent('onclick', function() { parent.reportUseragent.call(parent); });
}
@@ -1796,7 +1796,7 @@
this.thanks.style.display = 'none';
this.thanks.innerHTML = 'Thanks!';
this.useragent.appendChild(this.thanks);
-
+
this.total = document.getElementById(t);
this.update();
Please sign in to comment.
Something went wrong with that request. Please try again.