We don't need the application to be passed-in, it's always

statically accessible.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4436 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2006-10-26 01:49:44 +00:00
parent 0bb157aedf
commit a9d5ca01e2
@@ -28,10 +28,9 @@ public class Client extends EventDispatcher
private static const log :Log = Log.getLog(Client); private static const log :Log = Log.getLog(Client);
public function Client (creds :Credentials, app :Application) public function Client (creds :Credentials)
{ {
_creds = creds; _creds = creds;
_app = app;
} }
/** /**
@@ -98,7 +97,7 @@ public class Client extends EventDispatcher
public function callLater (fn :Function, args :Array = null) :void public function callLater (fn :Function, args :Array = null) :void
{ {
_app.callLater(fn, args); Application.application.callLater(fn, args);
} }
/** /**
@@ -106,7 +105,7 @@ public class Client extends EventDispatcher
*/ */
public function getStage () :Stage public function getStage () :Stage
{ {
return _app.stage; return Application.application.stage;
} }
public function getHostname () :String public function getHostname () :String
@@ -372,9 +371,6 @@ public class Client extends EventDispatcher
/** The credentials we used to authenticate with the server. */ /** The credentials we used to authenticate with the server. */
protected var _creds :Credentials; protected var _creds :Credentials;
/** The app we're in, needed for creating the Communicator. */
protected var _app :Application;
/** The version string reported to the server at auth time. */ /** The version string reported to the server at auth time. */
protected var _version :String = ""; protected var _version :String = "";