From ce16127afa451c1f7a798c33a890445e55d395d6 Mon Sep 17 00:00:00 2001 From: boussou Date: Thu, 11 Oct 2012 00:07:07 +0300 Subject: [PATCH] Update jquery.fireEvent.js little change to make it work on IE 8 for onblur --- jquery.fireEvent.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jquery.fireEvent.js b/jquery.fireEvent.js index f6b45e5..d2cafc2 100755 --- a/jquery.fireEvent.js +++ b/jquery.fireEvent.js @@ -37,7 +37,10 @@ // we use jquery to fire the click event because of a bug in IE7-8 $(el).click(); } else { + if (typeof(el.onblur) != 'undefined') //not defined for IE8 el.fireEvent(evts[eventName].ie); + else + el.fireEvent('onfocusout'); } } };