From c3d9b3b238bce84ea992e8f5c7c2fa43842dadb8 Mon Sep 17 00:00:00 2001 From: Tom Conkling Date: Mon, 21 Feb 2011 23:05:08 +0000 Subject: [PATCH] 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 --- .../com/threerings/presents/dobj/DObject.as | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/src/main/as/com/threerings/presents/dobj/DObject.as b/src/main/as/com/threerings/presents/dobj/DObject.as index 0b96ae759..a6c9a870e 100644 --- a/src/main/as/com/threerings/presents/dobj/DObject.as +++ b/src/main/as/com/threerings/presents/dobj/DObject.as @@ -37,7 +37,11 @@ import com.threerings.io.Streamable; public class DObject // extends EventDispatcher 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 () { @@ -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 { _deathWish = deathWish; @@ -231,9 +232,9 @@ public class DObject // extends EventDispatcher } } - /** + /** * Commits the transaction in which this distributed object is involved. - */ + */ public function commitTransaction () :void { if (_tevent == null) { @@ -339,7 +340,7 @@ public class DObject // extends EventDispatcher // dispatch an attribute changed event postEvent(new ElementUpdatedEvent(_oid, name, value, oldValue, index)); } - + /** * Calls by derived instances when an oid adder method was called. */ @@ -348,7 +349,7 @@ public class DObject // extends EventDispatcher // dispatch an object added event postEvent(new ObjectAddedEvent(_oid, name, oid)); } - + /** * Calls by derived instances when an oid remover method was called. */ @@ -421,6 +422,8 @@ public class DObject // extends EventDispatcher /** Indicates whether we want to be destroyed when our last subscriber is removed. */ protected var _deathWish :Boolean = false; + + private static const log :Log = Log.getLog(DObject); } }