[Trac] [OpenLayers] #357: Grid.shiftRow() - row.length != modelRow.length
OpenLayers
trac at openlayers.org
Wed Oct 18 16:52:05 EDT 2006
#357: Grid.shiftRow() - row.length != modelRow.length
--------------------------------+-------------------------------------------
Reporter: jdege at korterra.com | Owner:
Type: feature | Status: new
Priority: major | Milestone:
Component: general | Version:
Keywords: |
--------------------------------+-------------------------------------------
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.
--
Ticket URL: <http://trac.openlayers.org/ticket/357>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list