From 13953304403c7c3e3f3de5febc1901ef2b048c9b Mon Sep 17 00:00:00 2001 From: Tobie Langel Date: Thu, 11 Dec 2008 17:00:45 +0100 Subject: [PATCH] Fix Array errors in Opera. --- src/lang/array.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lang/array.js b/src/lang/array.js index 0976ea9..c5de0c5 100644 --- a/src/lang/array.js +++ b/src/lang/array.js @@ -172,7 +172,6 @@ Array.from = $A; }); // use native browser JS 1.6 implementation if available - if (!'indexOf' in arrayProto) arrayProto.indexOf = indexOf; - if (!'lastIndexOf' in arrayProto) arrayProto.lastIndexOf = lastIndexOf; - if (!'concat' in arrayProto) arrayProto.concat = concat; + if (!arrayProto.indexOf) arrayProto.indexOf = indexOf; + if (!arrayProto.lastIndexOf) arrayProto.lastIndexOf = lastIndexOf; })();