I’ve got a simple mootools accordion that works great in FF, Safari, and (wonder of wonders) IE. Firefox with Firebug has no problem with it. But Opera reports a syntax error. I’m at a loss...
window.addEvent('domready', function(){
var accordion = new Accordion('div.name', 'div.bio', {
opacity: false,
onActive: function(toggler, element){
toggler.setStyle('color', '#ff3300');
element.setStyle('display', 'block');
},
alwaysHide: true,
display: 'all-closed',
onBackground: function(toggler, element){
toggler.setStyle('color', '#222');
toggler.setStyle('font-weight', 'normal');
},
}, $('people')); // Opera reports an error here
});
An extraneous comma on the line before; that single } should not have a comma. Odd that Firebug didn’t catch that. And usually IE throws a fit if there’s extra commas. Oh, well.