I have an interesting problem.
I've detected global variable height
in my project.
Project has hundreds of files, so height
variable occurs thousands of times.
Obviously, I had forgotten var
operator somewhere.
How can I track this global variable origin?
UPD:
As I already said, variable occurs thousands of times.
And I don't really know how it can look like:
// forgotten var:
height = 'something';
// or forgotten comma
var a = 1,
b = 2
height = 3;
So I definitely can not search for it manually.
Any suggestions?