From 77594f0046ea80077b3864320df0aa941dae1be2 Mon Sep 17 00:00:00 2001 From: rolux Date: Fri, 29 Nov 2013 21:21:38 +0100 Subject: [PATCH] catch() requires argument --- source/Ox/js/Collection.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/Ox/js/Collection.js b/source/Ox/js/Collection.js index 18268635..72829f5d 100644 --- a/source/Ox/js/Collection.js +++ b/source/Ox/js/Collection.js @@ -470,7 +470,7 @@ if ( || !(function() { try { return Ox.slice(document.getElementsByTagName('a')); - } catch () {} + } catch (error) {} }()) ) { // FIXME: remove toArray alias @@ -482,7 +482,7 @@ if ( } try { ret = Array.prototype.slice.apply(collection, args); - } catch () { + } catch (error) { length = collection.length; for (index = 0; index < length; index++) { array[index] = collection[index];