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:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user