Thank you for reporting this bug. We will make it our priority to review this report.
-
Array.filter should check for sparse arrays
I'm not sure if this a bug, feature request or a documentation issue.
The custom Ext.Array.filter code does not check for sparse arrays, but the native implementation includes this check.
"callback is invoked only for indexes of the array which have assigned values; it is not invoked for indexes which have been deleted or which have never been assigned values."
-
Sencha - Forum Administrator
Thank you for reporting this. I'll send it over to the support team to look into and we will get it worked out.
-
Ext Support Team
I don't think that it is not checking sparse array, When you iterate over it, you can see that it has no elements. ExtJs and JavaScript skips the holes.
In ExtJs Ext.Array is singleton method where first arguments accept as array and second would be function for logic apply on it.
Please check this Fiddle : https://fiddle.sencha.com/#view/editor&fiddle/2lgq
Thanks,
Kumar
-

Originally Posted by
rakumar
I don't think that it is not checking sparse array, When you iterate over it, you can see that it has no elements. ExtJs and JavaScript skips the holes.
In ExtJs Ext.Array is singleton method where first arguments accept as array and second would be function for logic apply on it.
Please check this Fiddle :
https://fiddle.sencha.com/#view/editor&fiddle/2lgq
Thanks,
Kumar
This problem would manifest itself on IE 8.
Les