WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #20392, comment 7


Ignore:
Timestamp:
04/09/12 22:28:21 (2 years ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #20392, comment 7

    initial v1  
    22> `return` seems a bit more readable than a long `if` block. 
    33 
    4 Yes but this is in an anonymous wrapper function that does several things. If it's ever extended to include another jQuery chain, we will have to be careful to add it above or below that return depending where it should run. That's seems clearer with an `if()` block imho. 
     4Yes but this is in an anonymous wrapper function that does several things. If it's ever extended to include another jQuery chain, we will have to be careful to add it above or below that return depending where it should run. That seems clearer with an `if()` block imho.