I have written a javascript that works well in all browser except Internet Explorer and Safari. In both browsers there is a syntax error, and Safari even tells me the exact line of that error:
(function($)
{
Astrups.debugger = // This line!
{
The variable Astrups was defined as such earlier in the script:
var Astrups = {};
Any ideas? Thanks
I should perhaps mention the error messager. Safari tells me:
SyntaxError: Parse error
And internet explorer simply complains that Astrups in undefined in the HTML file.
Yes,
debuggeris a keyword which acts as a debugger breakpoint.Write
debugger;in your code and IE will always break while real browsers will only break if a debugger (e.g. Firebug) is active.