From 6b6a66a669aa77a0108c24ce37269a716cf401f4 Mon Sep 17 00:00:00 2001 From: Par Winzell Date: Sat, 10 May 2008 00:10:56 +0000 Subject: [PATCH] ... and back again, because apparently you can't initialize static members in, you know, static code. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5072 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/as/com/threerings/presents/dobj/DEvent.as | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/as/com/threerings/presents/dobj/DEvent.as b/src/as/com/threerings/presents/dobj/DEvent.as index 232da3577..a254a227f 100644 --- a/src/as/com/threerings/presents/dobj/DEvent.as +++ b/src/as/com/threerings/presents/dobj/DEvent.as @@ -32,6 +32,10 @@ public /* abstract */ class DEvent { public function DEvent (targetOid :int = 0) { + // TODO: Remove when https://bugzilla.mozilla.org/show_bug.cgi?id=433103 is fixed + if (UNSET_OLD_ENTRY == null) { + UNSET_OLD_ENTRY = new DummyEntry(); + } _toid = targetOid; } @@ -112,13 +116,6 @@ public /* abstract */ class DEvent /** The oid of the object that is the target of this event. */ protected var _toid :int; - // TODO: Remove when https://bugzilla.mozilla.org/show_bug.cgi?id=433103 is fixed - private static function staticInit () :void - { - UNSET_OLD_ENTRY = new DummyEntry(); - } - staticInit(); - protected static var UNSET_OLD_ENTRY :DSet_Entry; } }