Hi,
I need to remove an object with the same data, which was added to an array before. Is it possible somehow? My code does not work. Is it a proper behavior or a bug? Can someone advise how to do it?
SmartClient: 7.0rc2
Browser: Mozilla Firefox 3.5.7
I need to remove an object with the same data, which was added to an array before. Is it possible somehow? My code does not work. Is it a proper behavior or a bug? Can someone advise how to do it?
Code:
aList = [];
check = new Object;
check.value = 111111;
check.name = "test";
aList.add(check);
console.log("Check = ", check);
console.log("aList = ", aList);
check2 = new Object;
check2.value = 111111;
check2.name = "test";
console.log("Re-created Object was found = " + aList.remove(check2));
console.log("Check2 = ", check2);
console.log("aList = ", aList);
Browser: Mozilla Firefox 3.5.7
Comment