From e415bb59dd802b9ec556c2c1739264ef3dd74346 Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Thu, 8 Mar 2007 19:35:11 +0000 Subject: [PATCH] Avoid var-args in actionscript, because they're pretty broken. If you pass an array as the varargs argument, it doesn't supply the varargs like it would in java, instead the whole array becomes the first argument. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4621 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/as/com/threerings/crowd/data/ManagerCaller.as | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/as/com/threerings/crowd/data/ManagerCaller.as b/src/as/com/threerings/crowd/data/ManagerCaller.as index 2d0985fc2..0be55b135 100644 --- a/src/as/com/threerings/crowd/data/ManagerCaller.as +++ b/src/as/com/threerings/crowd/data/ManagerCaller.as @@ -31,7 +31,7 @@ public class ManagerCaller /** * Called to call a method on the manager. */ - public function invoke (method :String, ... args) :void + public function invoke (method :String, args :Array = null) :void { _plobj.postMessage(method, args); }