mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Fix #9901, verified by this unit test.
This commit is contained in:
@@ -1527,15 +1527,17 @@ test("live with multiple events", function(){
|
||||
});
|
||||
|
||||
test("live with namespaces", function(){
|
||||
expect(12);
|
||||
expect(15);
|
||||
|
||||
var count1 = 0, count2 = 0;
|
||||
|
||||
jQuery("#liveSpan1").live("foo.bar", function(e){
|
||||
equals( e.namespace, "bar", "namespace is bar" );
|
||||
count1++;
|
||||
});
|
||||
|
||||
jQuery("#liveSpan1").live("foo.zed", function(e){
|
||||
equals( e.namespace, "zed", "namespace is zed" );
|
||||
count2++;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user