We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28042 ☆ A M B ☆
    • 24,524 Posts
    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.
      Studying MODX in the desert - http://sottwell.com
      Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
      Join the Slack Community - http://modx.org