It seems that something has changed regarding namespaced live()
events. Looks broken to me:
Test case:
<html>
<head>
<script type="text/javascript" src="/js/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#mydiv').bind('click', function(ev) { console.log("click"); });
$('#mydiv').bind('click.goodbye', function(ev) { console.log
("click.goodbye"); });
$('#mydiv').bind('goodbye', function(ev) { console.log
("goodbye"); });
$('#mydiv').bind('hello.goodbye', function(ev) { console.log
("hello.goodbye"); });
$('#mydiv').trigger('click');
$('#mydiv').trigger('click.goodbye');
$('#mydiv').trigger('goodbye');
$('#mydiv').trigger('hello.goodbye');
});
</script>
</head>
<body>
<div id="mydiv">My DIV</div>
</body>
</html>
1.3.2 results (as expected):
click
click.goodbye
click.goodbye
goodbye
hello.goodbye
1.4 results (BAD):
click
click
goodbye
1.4 results ( replacing live() with bind() ):
click
click.goodbye
click.goodbye
goodbye
hello.goodbye
--
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.