nodejs fixes

This commit is contained in:
j 2026-02-18 18:16:43 +01:00
commit 7ed524517d
7 changed files with 32 additions and 15 deletions

View file

@ -466,6 +466,7 @@ Ox.slice = Ox.toArray = function(collection, start, stop) {
// value. Firefox 3.6 returns an array of undefined values if a string is passed
// as value.
if (
typeof document !== 'undefined' && (
Ox.slice([0]).length == 0
|| Ox.slice('0')[0] === null
|| Ox.slice('0')[0] === void 0
@ -474,7 +475,7 @@ if (
return Ox.slice(document.getElementsByTagName('a'));
} catch (error) {}
}())
) {
)) {
// FIXME: remove toArray alias
Ox.slice = Ox.toArray = function(collection, start, stop) {
var args = stop === void 0 ? [start] : [start, stop],