From 3fd894954bf7ee45d71b4d8bfaf7aaba62733788 Mon Sep 17 00:00:00 2001 From: Joe Walker Date: Fri, 26 Nov 2010 16:11:40 +0000 Subject: [PATCH] minor tidy-up --- plugins/pilot/lib/lang.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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);