forked from 0x2620/oxjs
use [].slice, not Ox.sub
This commit is contained in:
parent
915e98f829
commit
f990f3b857
7 changed files with 10 additions and 10 deletions
|
|
@ -214,8 +214,8 @@ Ox.api = function(items, options) {
|
|||
}
|
||||
if (options.range) {
|
||||
// apply range
|
||||
result.data.items = Ox.sub(
|
||||
result.data.items, options.range[0], options.range[1]
|
||||
result.data.items = result.data.items.slice(
|
||||
options.range[0], options.range[1]
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue