PDA

View Full Version : How to bypass the remove function which is automatically inserted in all new Arrays?



samax
10 Jun 2009, 5:41 AM
Hello,
When I create a new Array using extJs, a "remove()" function is always inserted in it. The problem is that when I browse through this array, I see the function, and it gets in my way. Is there a way to prevent it?

Thanks.

hendricd
10 Jun 2009, 6:06 AM
@samax -- It depends on how you are using the JS Array. How are you looping thru it?

Animal
10 Jun 2009, 6:20 AM
Loop through the Array as an Array, not an object. Use numeric indices.