MarkT
6 Aug 2007, 10:22 AM
I was testing version 1.1 and wanted to see how much work would be needed to drop Prototype in favor of the stand alone adapter. I use Prototype's Array.without feature in a few places to remove entries from an array. I tried using the Ext Array.remove function instead, and for the most part it worked the same.
The only difference was when I removed the last entry from the array. I was expecting it to return an empty array, but I got "undefined" instead.
My code looks something like this:
...
arr = arr.remove(val);
...
The only difference was when I removed the last entry from the array. I was expecting it to return an empty array, but I got "undefined" instead.
My code looks something like this:
...
arr = arr.remove(val);
...