Reputation: 4244
I try too access object :
balance_Table.TEXTBOX.font
and everything is ok but program breaks in this line (top / last error msg in console) . Value is "24px Verdana" - this is regular .
look at this screenshot :
Upvotes: 0
Views: 236
Reputation: 4737
It happens to me all the time. The problem has been that Chrome fails to report the correct line where the code is failing, but it should be a line around that number, give or take 15 lines or so.
What I do when part of the javascript is dynamically generated, is I copy all the source from Chrome and paste it in a syntax sensitive editor (I use PhpStorm, CTRL+SHIFT+ALT+INS inserts a scratch js file with syntax highlighting and correction), it usually finds the error very quickly for me, in case it is a missing semicolon or something like that.
Upvotes: 2