Thanks for the sample code, Garrett. It's on my todo list.

--John



On Mon, Jan 5, 2009 at 11:14 PM, Garrett LeSage <garre...@gmail.com> wrote:
>
> Hi everyone!
>
> I'm testing 1.3 beta 2 with the project I'm working on... and noticed
> bind seems to act slightly different, compared to 1.2.6.
>
> In jQuery 1.2.6, bind accepts (type, [data], fn). This is the same in
> 1.3b2, except that it appears fn is passed three arguments instead of
> two. The new second argument seems to be the triggered binding's
> namespace.
>
> Example: If one wanted to bind to the tabsselect event (to perform an
> action when a tab is selected) in jQuery UI tabs, something like the
> following would work in 1.2.6:
>
>  $("#notebook>ul").tabs().bind("tabsselect", function(e, ui){
>    console.log("You clicked " + ui.tab);
>  });
>
> This causes an error in jQuery 1.3 beta 2. If the example code is
> changed to function(e, namespace, ui), it works.
>
> Garrett
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to jquery-dev@googlegroups.com
To unsubscribe from this group, send email to 
jquery-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to