Clone fix: pass in our ApplicationDomain.
This is sorta wacked. Grumble. I wish there was a pointer to the class always, instead of the language letting anonymous functions be a "constructor". This may not always work if a subclass of OccupantInfo is loaded into a sub-domain. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5227 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -21,6 +21,8 @@
|
||||
|
||||
package com.threerings.crowd.data {
|
||||
|
||||
import flash.system.ApplicationDomain;
|
||||
|
||||
import com.threerings.util.ClassUtil;
|
||||
import com.threerings.util.Cloneable;
|
||||
import com.threerings.util.Integer;
|
||||
@@ -98,7 +100,8 @@ public class OccupantInfo extends SimpleStreamableObject
|
||||
*/
|
||||
public function clone () :Object
|
||||
{
|
||||
var that :OccupantInfo = ClassUtil.newInstance(this) as OccupantInfo;
|
||||
var that :OccupantInfo =
|
||||
ClassUtil.newInstance(this, ApplicationDomain.currentDomain) as OccupantInfo;
|
||||
that.bodyOid = this.bodyOid;
|
||||
that.username = this.username;
|
||||
that.status = this.status;
|
||||
|
||||
Reference in New Issue
Block a user