It's working now:  http://jsfiddle.net/VELCe/434/

Can someone let me know if this is a good rewrite, or if there is a
cleaner way to do it?

Changed:  tab.addEvent('click', this.resize.bindWithEvent(this,
index));

TO:

            tab.addEvent('click', function(e) {
                (function(e, index) {
                     this.resize(e, index);
                 }).pass([e, index], this)();
             }.bind(this));

Reply via email to