ItemFileReadStore.js (IE8)

Description

Failed on line 564 (uncompressed file), IE8 array count is off by 1 because of the prototype attribute. A quick fix is to add check
'if (this._arrayOfTopLevelItems[i] === undefined) break;'
within the for loop line 557 to 565.

Change History (11)

This seems to be cause by an IE8 bug. If the storage is explicitly define as array, then the code will work. If leave it up to IE8, then array length is off by one. IE9 or above does not have the issue.

Does the assumption of array index is always a number correct?
I will work on the example.

The first one shows variable test created as an array. Variable test1 created from code similar to dojo example. The variable data is from my code created by program. Notice the type different for test1.items "[ [object Object],[object Object]]" and data.items "[object(Array)]".
The second screen captures show unrolling data.items. Items enumerated to 106 and length show 108.