Thread:Mathmagician/@comment-3508190-20120504092551/@comment-3508190-20120508054957

There are two things about $.extend that the official documentation doesn't make clear:

1.) You should probably avoid $.extend if one of your properties is an array. Intuitively one would expect a union of the two arrays, but this is what really happens:

normal copy:

"deep" copy:

2.) You can extend jQuery with $.extend:

http://asimilia.wordpress.com/2008/12/17/jquery-extend-confusion/