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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to