From 4564835abd5aea75ee0a190ded04ab1158a7ebaf Mon Sep 17 00:00:00 2001 From: Doug Black Date: Mon, 10 Oct 2016 10:34:52 -0400 Subject: [PATCH] Fixed over_sb error Console was throwing not defined error. Fixed it by adding var --- jquery.auto-complete.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.auto-complete.js b/jquery.auto-complete.js index 330e04a..0fc6634 100644 --- a/jquery.auto-complete.js +++ b/jquery.auto-complete.js @@ -81,7 +81,7 @@ }); that.on('blur.autocomplete', function(){ - try { over_sb = $('.autocomplete-suggestions:hover').length; } catch(e){ over_sb = 0; } // IE7 fix :hover + try { var over_sb = $('.autocomplete-suggestions:hover').length; } catch(e){ over_sb = 0; } // IE7 fix :hover if (!over_sb) { that.last_val = that.val(); that.sc.hide();