From ad5cefeefc2dec285f9f9bb177e5bd190d0e6996 Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Fri, 22 Mar 2013 14:07:20 -0400
Subject: [PATCH] Better fix for IE9 issue with document.activeElement error (#1489008)

---
 program/js/common.js |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/program/js/common.js b/program/js/common.js
index 7ad1891..1075225 100644
--- a/program/js/common.js
+++ b/program/js/common.js
@@ -743,12 +743,8 @@
       });
 
       // Do not blur currently focused element
-      // Catch "unspecified error" in IE9 (#1489008)
-      try {
-        if (this != document.activeElement)
-          elem.blur();
-      }
-      catch(e) {}
+      if (this != document.activeElement)
+        elem.blur();
     }
   });
 };

--
Gitblit v1.9.1