3 ms·
Why not: options = $.extend(true, {}, defaults, options);
by phlyingpenguin 13y ago
Why not:
options = $.extend(true, {}, defaults, options);
- kolodny 13y agoBecause I didn't think of it :) Actually that's better because if one of the options is an object I wouldn't have to worry about accidentally changing a propery because this does a deep copy. I've updated the post, thanks.