Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #21170, comment 8


Ignore:
Timestamp:
07/05/2012 11:41:12 PM (12 years ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #21170, comment 8

    initial v1  
    22> ... as it allows us to develop this with only jQuery as a dependency...
    33
    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.
     4The 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.