Life is a lot easier if our observers are notified in the order they are
registered rather than in reverse. I'd like to make this change to media.AbstractMedia as well but no doubt zillions of things depend on the current notification ordering for that package. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3691 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -80,7 +80,7 @@ public class Sprite extends Node
|
||||
public void addObserver (SpriteObserver obs)
|
||||
{
|
||||
if (_observers == null) {
|
||||
_observers = new ObserverList(ObserverList.FAST_UNSAFE_NOTIFY);
|
||||
_observers = new ObserverList(ObserverList.SAFE_IN_ORDER_NOTIFY);
|
||||
}
|
||||
_observers.add(obs);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user