nodejs fixes
This commit is contained in:
parent
dd5237e4ed
commit
7ed524517d
7 changed files with 32 additions and 15 deletions
|
|
@ -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],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue