This code is throwing the following error in IE, but not in any other browser:
'undefined' is null or not an object
Does anyone know why? I can’t find what’s wrong with the code.
jQuery(document).ready(
function() {
jQuery("ul.sf-menu").supersubs({
minWidth: 12,
maxWidth: 27,
extraWidth: 1,
}).superfish({
delay: 100,
animation: { opacity: 'show' },
speed: 'fast'
});
}
);
Try removing the extra comma after
extraWidth: 1.Note: I do not have IE on this computer so I can’t test this, but your syntax is completely correct otherwise. My guess is that IE sees the extra comma, fails, and passes
undefinedtosupersubsinstead.