View Single Post
Old 02-15-2013, 12:10 AM   PM User | #18
rnd me
Senior Coder

 
rnd me's Avatar
 
Join Date: Jun 2007
Location: Urbana
Posts: 3,460
Thanks: 9
Thanked 466 Times in 450 Posts
rnd me is a jewel in the roughrnd me is a jewel in the roughrnd me is a jewel in the rough
Quote:
Originally Posted by felgall View Post
The examples you quote are both running the second version of the function - that the if statement returns true is irrelevant it would run the second copy of the function even if the if statement returned false.
i see. i did not notice that. i probably have some broken non old IE code floating around.

well, you were right and i was wrong.
i'm still re-reading the spec to try to figure this one out...

awesome; it's not everyday i learn something new about JS!

thanks for the follow-up.
__________________
my site (updated 5/13)
STATS (2013/5) HTML5:90.2% MOB:14% IE7:0.5% IE8:8.6% IE9:9.8% IE10:10%
rnd me is offline   Reply With Quote