Hey peeps!
I'm sure I'm missing something obvious here but I can't for the life
of me figure out what's going wrong.
I'm trying to use Array.without() to get rid of a number from an array
in the fourth line of my code.
The trouble is, it returns an array with all instances of the index
set to zero.
-----------------------------------------------------------------------------------
this.removeTab = function(index){
list.select("li")[index].remove();
history = history.without(index);
if(selected == index){ this.setSelected(history.last()); }
}
-----------------------------------------------------------------------------------
Any idea what's going on people?
Help much appreciated.
BEAR
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---