View Full Version : remove function of array
zhangyongjiang
3 Oct 2007, 7:47 PM
I need do more investigation
mystix
3 Oct 2007, 8:09 PM
please search before posting in future. this has been discussed before.
also, pls read the guidelines before posting in bugs.
Ext adds a remove() method to the Array prototype.
a for ... in array traversal will fail (it's not recommended anyway), but a normal for loop like like so
for (var i = 0, ilen = myarray.length; i < ilen; i++) {
// bla bla bla
}
will not fail.
zhangyongjiang
4 Oct 2007, 11:57 AM
It seems that 'remove' method is added to the Array type. When I use array.length, I get one more than the actual size. It breaks my code.
Any suggestions? Thx.
jack.slocum
4 Oct 2007, 12:07 PM
It does not increase the length of the Array. It does break invalid use of for...in loops though.
This has been discussed in numerous spots. Please search the forums before posting. Thanks!
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.