Changes between Initial Version and Version 1 of Ticket #21170, comment 8
- Timestamp:
- 07/05/2012 11:41:12 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #21170, comment 8
initial v1 2 2 > ... as it allows us to develop this with only jQuery as a dependency... 3 3 4 The above script doesn't have any dependencies. That may be preferable for some cases (front-end use?). The corresponding jQuery methods (each(), extend(), etc.) are tuned for wider range of uses like traversing and extending complex objects or the DOM which is not needed at the moment. So using a `for... in` loop instead of jQuery.each() and `obj[key] = val;` instead of jQuery.extend() is faster and keeps the script independent.4 The above script doesn't have any dependencies. That may be preferable for some cases (front-end use?). The corresponding jQuery methods (each(), extend(), etc.) are tuned for wider range of uses like traversing and extending complex objects or the DOM which is not needed at the moment. So using a `for... in` loop instead of jQuery.each() and `obj[key] = val;` instead of jQuery.extend() is faster and keeps the script self-contained.