DSet should be cloneable; ObjectUtil.copy() only works for registered

Externalizables or built-in classes.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4464 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2006-12-01 02:24:27 +00:00
parent 737bca0a98
commit 06046aed9c
2 changed files with 13 additions and 4 deletions
@@ -21,8 +21,6 @@
package com.threerings.presents.data {
import mx.utils.ObjectUtil;
import com.threerings.presents.dobj.DObject;
import com.threerings.presents.dobj.DSet;
import com.threerings.presents.dobj.DSet_Entry;
@@ -79,7 +77,7 @@ public class ClientObject extends DObject
{
requestAttributeChange(RECEIVERS, value, this.receivers);
this.receivers = (value == null) ? null
: (ObjectUtil.copy(value) as DSet);
: (value.clone() as DSet);
}
// AUTO-GENERATED: METHODS END