What happens if you deep copy $.extend() an object containing jQuery selectors.
What happens if you do the following?
- That is deep copy a jQuery selector.
myObj = {
someProp: "myProp",
selector: {
start: $("#myStart"),
stop: $("#myStop")
}
};
myCopy = $.extend(true,{},myObj);
I'm concerned whether the myObj.selector object will deep copy the whole of jQuery as part of the process. My initial tests did not show any obvious speed hit, but it is rather a basic test right now.