diff --git a/plugins/pilot/lib/lang.js b/plugins/pilot/lib/lang.js index 01045cfa..f99d7a04 100644 --- a/plugins/pilot/lib/lang.js +++ b/plugins/pilot/lib/lang.js @@ -45,9 +45,9 @@ define(function(require, exports, module) { }; lang.stringRepeat = function (string, count) { - return new Array(count + 1).join(string); - } - + return new Array(count + 1).join(string); + }; + if (Array.prototype.indexOf) { lang.arrayIndexOf = function(array, searchElement) { return array.indexOf(searchElement);