Control.Tabs patch for Prototype 1.6.0

Prototype 1.6.0 has been released and there are some changes to how Hashes are handled.

Namely, you're not supposed to use Hash#[] anymore, but Hash#get and Hash#set.

Anyway, here's a patch if anyone else is trying to use Control.Tabs with Prototype 1.6: http://pastie.textmate.org/115490

Posted November 8th, 2007 at 10:43am by PotatoSalad

Thanks a lot for this!

Looks like hashes are the only thing breaking the tabs?

Posted November 19th, 2007 at 3:32pm by eggie5

Any chance the patch could be reposted, the pastie is unavailable at the moment.

Posted December 3rd, 2007 at 8:04am by ManicPanda

YAY!!!!!!! I spend hours trying to figure out what was wrong.. Thank you!

Posted December 6th, 2007 at 6:53pm by gatto

i had the same problem with the pastie so i took google to search in cache. just use 'cache:http://pastie.textmate.org/115490' (without quotes) at google and you should see the diff done by PotatoSalad

cheers

Posted December 7th, 2007 at 7:17am by yesar

Thanks! This was a showstopper, working great now.

Posted January 23rd, 2008 at 3:50am by tacman1123

I was able to make the first change that is shown on but i don't even see the following lines that I am supposed to change:

this.options.showFunction(this.containers[link.key]);
this.notify('afterChange',this.containers[link.key]);

I am using control.tabs.1.6.0 is this patch for a different version?

Thanks

Posted January 23rd, 2008 at 11:05am by mdg5w

I was able to make the first change that is shown on but i don't even see the following lines that I am supposed to change:

this.options.showFunction(this.containers[link.key]);
this.notify('afterChange',this.containers[link.key]);

I am using control.tabs.1.6.0 is this patch for a different version?

Thanks

Posted January 23rd, 2008 at 11:10am by mdg5w

I was able to get it working using Control.Tabs.2.0.0.RC2.js

Posted January 23rd, 2008 at 1:27pm by mdg5w

Login or Register to Post