forked from 0x2620/oxjs
use [].concat, not Ox.merge
This commit is contained in:
parent
36d0162b8b
commit
1c40fb007b
27 changed files with 87 additions and 90 deletions
|
|
@ -20,7 +20,7 @@ Ox.OptionGroup = function(items, min, max, property) {
|
|||
// returns the position of the last checked item before position pos
|
||||
var last = -1;
|
||||
// fixme: why is length not == items.length here?
|
||||
Ox.forEach(Ox.merge(
|
||||
Ox.forEach([].concat(
|
||||
pos > 0 ? Ox.range(pos - 1, -1, -1) : [],
|
||||
pos < items.length - 1 ? Ox.range(items.length - 1, pos, -1) : []
|
||||
), function(v) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue