Hello,
davej, I added the onerror code, thanks.
Today I ran into this, I had this code and it was working fine.
function IntToColorString(aColor) { return '#' + ('000000' + aColor.toString(16)).substr(-6); }
Then sometime last night when I was messing about, I somehow hit the wrong key and added a = to the code.
return = '#' + ('000000' + aColor.toString(16)).substr(-6);
When I next opened the page I got an error pointing in the totally wrong location. It took me many minutes to find the error. As the code grows larger, this kind of error could be costly. Most other environments I use would have flagged that error at compile time.
I just tested with the window.onerror handler and it did not find the error.
I had looked at JLint earlier but when I tested it it gave me tons of errors about formatting and I am using the auto format in Aptana so, I have not been using it. I just tested it and JLint caught the error when I pasted just that function. Testing the whole page gave tons of spaces errors.
Can anyone recommend a solution?
By the by, paste in this editor does not work in IE11. I had to uses Firefox.
Thanks for all the help,
Mark