Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Cannot remove object from array

    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?

    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);
    SmartClient: 7.0rc2
    Browser: Mozilla Firefox 3.5.7

    #2
    Any update, please?

    Comment


      #3
      Is it a bug or just I do not fully understand how it should be working?

      Comment

      Working...
      X