Skip to content

Commit

Permalink
indexOf replace with jQuery inArray to avoid issues with older versio…
Browse files Browse the repository at this point in the history
…ns of IE
  • Loading branch information
leon-anavi committed Aug 17, 2013
1 parent 4477a3c commit bf5dc56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jqueryTranslator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -176,4 +176,4 @@
path : null,
skip : []
};
})(jQuery, window, document);
})(jQuery, window, document);

0 comments on commit bf5dc56

Please sign in to comment.