[jQuery] Re: Deep $.extend() doesn't work with Date objects

2009-02-08 Thread Tin
I can see why it is working the way it does, but it seems like a clear and easily fixable bug to me. $.extend() could be made aware of the intrinsic JavaScript objects so that they are copied (i.e. recreated) properly. On Feb 5, 3:11 pm, Stephan Veigl wrote: > Hi, > > this is because jQuery cr

[jQuery] Re: Deep $.extend() doesn't work with Date objects

2009-02-05 Thread Stephan Veigl
Hi, this is because jQuery creates anonymous objects for the clones and copies the object properties. For the Date object there are no public properties, so only the empty object hull is created. But you are right, not copying Dates correctly is a bit strange. If you disable the copy deep flag,