chuanxshi / javascript-patterns

JavaScript Design Patterns
http://shichuan.github.io/javascript-patterns
9.39k stars 1.69k forks source link

I thought the conditionals.html file was a bit misleading. #19

Closed hitsthings closed 12 years ago

hitsthings commented 12 years ago

The first form isn't an antipattern, IMO. Paul Irish explicitly said the latter forms were only superior for bookmarklets. So I ran a jsperf and linked it here so people can compare for themselves.

chuanxshi commented 12 years ago

@hitsthings yeah, a comment like this is definitely needed to make the point clear, thanx a lot for the pull request