catch() requires argument
This commit is contained in:
parent
d0aee8c737
commit
77594f0046
1 changed files with 2 additions and 2 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue