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];