catch() requires argument

This commit is contained in:
rolux 2013-11-29 21:21:38 +01:00
parent d0aee8c737
commit 77594f0046

View file

@ -470,7 +470,7 @@ if (
|| !(function() { || !(function() {
try { try {
return Ox.slice(document.getElementsByTagName('a')); return Ox.slice(document.getElementsByTagName('a'));
} catch () {} } catch (error) {}
}()) }())
) { ) {
// FIXME: remove toArray alias // FIXME: remove toArray alias
@ -482,7 +482,7 @@ if (
} }
try { try {
ret = Array.prototype.slice.apply(collection, args); ret = Array.prototype.slice.apply(collection, args);
} catch () { } catch (error) {
length = collection.length; length = collection.length;
for (index = 0; index < length; index++) { for (index = 0; index < length; index++) {
array[index] = collection[index]; array[index] = collection[index];