From 04316d8620eba7d2e61e6b62943bdc1978316293 Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Fri, 14 Aug 2009 03:10:48 +0000 Subject: [PATCH] My actionscript-fu has improved since I originally wrote this. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5911 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/as/com/threerings/crowd/chat/client/ChatDirector.as | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/as/com/threerings/crowd/chat/client/ChatDirector.as b/src/as/com/threerings/crowd/chat/client/ChatDirector.as index 46928a251..f8f4cdc23 100644 --- a/src/as/com/threerings/crowd/chat/client/ChatDirector.as +++ b/src/as/com/threerings/crowd/chat/client/ChatDirector.as @@ -163,11 +163,9 @@ public class ChatDirector extends BasicDirector */ public function getChatFilters () :Array { - var filters :Array = []; - _filters.apply(function (observer :ChatFilter) :void { - filters.push(observer); - }); - return filters; + var retval :Array = []; + _filters.apply(retval.push); + return retval; } /**