From 4ecc3e84af69428348f1ecacce7adf15036ccdbe Mon Sep 17 00:00:00 2001 From: Jamie Doornbos Date: Tue, 16 Aug 2011 17:51:55 +0000 Subject: [PATCH] Expose the DObject here. Then the client code needn't keep both a subscriber and an object lying around. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6693 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- .../as/com/threerings/presents/util/SafeSubscriber.as | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/as/com/threerings/presents/util/SafeSubscriber.as b/src/main/as/com/threerings/presents/util/SafeSubscriber.as index 311f242ea..1a76995f1 100644 --- a/src/main/as/com/threerings/presents/util/SafeSubscriber.as +++ b/src/main/as/com/threerings/presents/util/SafeSubscriber.as @@ -71,6 +71,14 @@ public class SafeSubscriber implements Subscriber return _active; } + /** + * Gets the object we are subscribed to, or null if the subscription is not yet complete. + */ + public function getObject () :DObject + { + return _object; + } + /** * Initiates the subscription process. */