PDA

View Full Version : Adding listener to front of Observable's internal listeners array



chinabuffet
30 Dec 2010, 4:46 PM
The default behavior of an Observable's addListener method adds it to the end of the list, so if there are 2 listeners for an event, and you then add a third new one, the new one would be called last when that event is fired. Is there a way to insert the listener to the front of that list? So that the newly added listener would be the first one called instead of last.