Nicer: http://jsfiddle.net/oskar/VELCe/435/
O. On 2011-02-13, at 20:45, Dailce wrote: > 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));
