From bf5dc56fc3834313284646decdbe0c27054537d2 Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Sat, 17 Aug 2013 20:55:27 +0300 Subject: [PATCH] indexOf replace with jQuery inArray to avoid issues with older versions of IE --- jqueryTranslator.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jqueryTranslator.js b/jqueryTranslator.js index 9154857..469dedd 100644 --- a/jqueryTranslator.js +++ b/jqueryTranslator.js @@ -56,7 +56,7 @@ }, isTranslatable : function(language){ if (this.options.defaultLang === language) { return false; } - else { return (this.options.skip.indexOf(language) === -1); } + else { return ($.inArray(language, this.options.skip) === -1); } }, loadLanguages : function(){ var loaded = 0, maxLoad = Translate.languages.length * Translate.packages.length; @@ -176,4 +176,4 @@ path : null, skip : [] }; -})(jQuery, window, document); \ No newline at end of file +})(jQuery, window, document);