Ticket #357 (closed feature: duplicate)
Grid.shiftRow() - row.length != modelRow.length
| Reported by: | jdege@… | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 2.3 Release |
| Component: | Layer | Version: | |
| Keywords: | Cc: | ||
| State: |
Description
In the function shiftRow(), in Grid.js, I've seen unknown object errors, because the row[] array had one fewer elements than the modelRow[] array.
In the latest instance, prepend = true, modelRowIndex = 0, modelRow.length = 7, row.length = 6.
In the loop, i ranges from 0 to modelRow.length. For the last iteration, i = 6, and row[i] is undefined.
For some reason, every once in a great while, this.grid[0] is an array with one more element than this.grid.pop() is returning.
The result is an unknown object error.
Change History
Note: See
TracTickets for help on using
tickets.
