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() {
|
|| !(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];
|
||||||
|
|
Loading…
Reference in a new issue