Hello i need help with erasing an array from a list.
I do not understand why it is not working.
var complain = [];
complain.push(bildID); //works fine console.log shows: [1002, 1005,
1003, 1001]
var element = new Element('li', {
'id': bildID,
'html': complaintext
}).inject('complainContainer','top');
element.addEvent('click', function(event) {
complain.erase(element.get('id')); //do not work
element.dispose(); //works
fine
alert("delete: " + element.get('id')); // it shows
the right ID
});
...
thanks for any help in advance
--
Subscription settings:
http://groups.google.com/group/mootools-users/subscribe?hl=en