We can still initialize this statically, thanks Ray.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5071 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -32,10 +32,6 @@ public /* abstract */ class DEvent
|
|||||||
{
|
{
|
||||||
public function DEvent (targetOid :int = 0)
|
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;
|
_toid = targetOid;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -116,6 +112,13 @@ public /* abstract */ class DEvent
|
|||||||
/** The oid of the object that is the target of this event. */
|
/** The oid of the object that is the target of this event. */
|
||||||
protected var _toid :int;
|
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;
|
protected static var UNSET_OLD_ENTRY :DSet_Entry;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user