3 ms·
Why is this using jQuery to clone an object? Much of the features this presents can easily be done with pure JavaScript. There is no need for added libraries un
by gravypod 10y ago
Why is this using jQuery to clone an object? Much of the features this presents can easily be done with pure JavaScript. There is no need for added libraries unless I'm not seeing something.
- mihas 10y agoIt is used for other things too, it wasn't introduced only for cloning. But yes, it could be replaced with pure JavaScript, I might do this when refactoring next time.
- gravypod 10y agoFrom what I remember, the jQuery implementation isn't as fast as the native JS implementation when it comes to this. This was true at least for Chrome IIRC.