jshint/jshint — pull request #349 by goatslacker (2011-11-20 01:38:54+00:00)
Title: latedef now plays nice with undef Fixes GH-133 and GH-347

I added all the test cases that were present in the comments as well as a few others.

Squashed commit of the following:

commit 1b1f31b31f45a6b3d7d06b0531ecf45ea04b6758
Author: Josh Perez
Date: Sat Nov 19 16:22:06 2011 -0800

Using for loop instead of filter/forEach

commit e399e55c580057010e4ec49e46e24ed6b2e462f7
Author: Josh Perez
Date: Sat Nov 19 16:11:09 2011 -0800

Now works with vars, fixes other possible issue

* I have reason to believe latedef was not working properly
on an anonymous function. Will have to verify.

commit ed4631158630a734353fc9050ac7d74739f5cee1
Author: Josh Perez
Date: Sat Nov 19 15:57:22 2011 -0800

Fixes anonfuncs for GH-133

commit 38ec2b22d2b458498b2c075b0477136229137443
Author: Josh Perez
Date: Sat Nov 19 15:16:09 2011 -0800

Fixes GH-133

commit 539420dad9560926d611b825bb663aeeccc0e495
Author: Josh Perez
Date: Sat Nov 19 15:13:06 2011 -0800

Fixes GH-133 by checking if variables were defined

* Runs a post-check to see if variables were defined before
reporting them as undefined.