Making callEZCode() 'internal' booched it for WorldGameControl.

Made it protected, added a second function for 'friend' access.
We could use a custom namespace for this, too.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@206 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Ray Greenwell
2007-02-22 03:53:44 +00:00
parent 9e8dce3619
commit 9eedd5678c
3 changed files with 16 additions and 6 deletions
+11 -1
View File
@@ -557,7 +557,7 @@ public class EZGameControl extends BaseControl
/**
* Call a method across the security boundary.
*/
internal function callEZCode (name :String, ... args) :*
protected function callEZCode (name :String, ... args) :*
{
if (_funcs != null) {
try {
@@ -571,6 +571,16 @@ public class EZGameControl extends BaseControl
}
}
/**
* A "friend" version of callEZCode for subControls.
*/
internal function callEZCodeFriend (name :String, ... args) :*
{
// var args
args.unshift(name);
callEZCode.apply(this, args);
}
/**
* Internal method that is called whenever the mouse clicks our root.
*/