From 415c846b1954fab9bc0d538737a675fbfd858513 Mon Sep 17 00:00:00 2001 From: Shane Tomlinson <stomlinson@mozilla.com> Date: Tue, 30 Aug 2011 16:35:53 -0700 Subject: [PATCH] Make a hacktastic fix for addEventListener not being there on dev.myfavoritebeer.org --- browserid/static/include.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/browserid/static/include.js b/browserid/static/include.js index e899d6b47..e5a2eb89d 100644 --- a/browserid/static/include.js +++ b/browserid/static/include.js @@ -40,6 +40,14 @@ if (!navigator.id) { navigator.id = {}; } +// XXX take this out when Lloyd is back! It is to fix dev.myfavoritebeer.org +// until he can change the uses of addEventListener. +if(!document.addEventListener && document.attachEvent) { + document.addEventListener = function(name, callback, bubbles) { + document.attachEvent(name, callback); + } +} + if (!navigator.id.getVerifiedEmail || navigator.id._getVerifiedEmailIsShimmed) { var ipServer = "https://browserid.org"; -- GitLab