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() {
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];