Move these variables where they belong and add some documentation. Also apparently whitespace.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6506 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Tom Conkling
2011-02-21 23:05:08 +00:00
parent e7a725f9e1
commit c3d9b3b238
@@ -37,7 +37,11 @@ import com.threerings.io.Streamable;
public class DObject // extends EventDispatcher public class DObject // extends EventDispatcher
implements Streamable implements Streamable
{ {
private static const log :Log = Log.getLog(DObject); /** Dispatched when a message is posted to the DObject */
public const messageReceived :Signal = new Signal(String, Array);
/** Dispatched when the DObject is destroyed */
public const destroyed :Signal = new Signal();
public function DObject () public function DObject ()
{ {
@@ -78,9 +82,6 @@ public class DObject // extends EventDispatcher
} }
} }
public const messageReceived :Signal = new Signal(String, Array);
public const destroyed :Signal = new Signal();
public function setDestroyOnLastSubscriberRemoved (deathWish :Boolean) :void public function setDestroyOnLastSubscriberRemoved (deathWish :Boolean) :void
{ {
_deathWish = deathWish; _deathWish = deathWish;
@@ -421,6 +422,8 @@ public class DObject // extends EventDispatcher
/** Indicates whether we want to be destroyed when our last subscriber is removed. */ /** Indicates whether we want to be destroyed when our last subscriber is removed. */
protected var _deathWish :Boolean = false; protected var _deathWish :Boolean = false;
private static const log :Log = Log.getLog(DObject);
} }
} }