Fix #9901, verified by this unit test.

This commit is contained in:
Dave Methvin
2011-09-20 09:16:13 -04:00
parent 70e2e32e0e
commit 63c9719330

View File

@@ -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++;
});