-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of John Grden
Sent: Friday, August 25, 2006 3:06 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] clone object

I guess you'd be right about that.  It'd be my problem - good point.

while I'm at it:

1.  I use block comments all the time - but if you think it's janky, more
power to you.

2.  I prefer people to drop the curly brace down to the next line, not left
up on the method declaration line.  But I don't give a rats ass if they
don't.

3.  I think WWF wrestling is fake - but it's cool if others don't.

4.  Drew Bledsoe will be out by the 3rd game of the regular season - well,
that's just a fact.

5.  Your mom.

and as we all know, the conversation always ends when someone pulls the
"your mom" card.

;)



On 8/25/06, Steven Sacks | BLITZ <[EMAIL PROTECTED]> wrote:
>
> I'm using this to clone data objects.  If you put circular references in
> your data models that's not my problem.  :)
>
>
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:flashcoders-
> > [EMAIL PROTECTED] On Behalf Of John Grden
> > Sent: Friday, August 25, 2006 6:37 AM
> > To: Flashcoders mailing list
> > Subject: Re: [Flashcoders] clone object
> >
> > Guess there's a first time for everything, eh?
> >
> > var obj = new Object();
> > obj.prop1 = new Object();
> > obj.prop1.prop2 = new Object();
> > obj.prop1.prop2.ref = obj.prop1;
> >
> > function clone(obj:Object):Object
> > {
> >     var o = (null != obj.length) ? [] : {};
> >     for (var i in obj)
> >     {
> >         o [i] = (typeof obj[i] == "object") ? clone(obj[i]) :
> >         obj[i];
> >     }
> >     return o;
> > }
> >
> > 256 levels of recursion were exceeded in one action list.
> > This is probably an infinite loop.
> > Further execution of actions has been disabled in this movie.
> >
> > ;)
> >
> > On 8/24/06, Steven Sacks | BLITZ <[EMAIL PROTECTED]> wrote:
> > >
> > > If you're not willing to code a solution, then why are you bothering
> to
> > > write out an explanation?  I have yet to encounter a recursion limit
> and
> > > I've parsed some deep object models.
> > > _______________________________________________
> > > [email protected]
> > > To change your subscription options or search the archive:
> > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > >
> > > Brought to you by Fig Leaf Software
> > > Premier Authorized Adobe Consulting and Training
> > > http://www.figleaf.com
> > > http://training.figleaf.com
> > >
> >
> >
> >
> > --
> > [  JPG  ]
> > _______________________________________________
> > [email protected]
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com
> > http://training.figleaf.com
> _______________________________________________
> [email protected]
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>



-- 
[  JPG  ]
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to