Commit 63c97193 authored by Dave Methvin's avatar Dave Methvin

Fix #9901, verified by this unit test.

parent 70e2e32e
...@@ -1527,15 +1527,17 @@ test("live with multiple events", function(){ ...@@ -1527,15 +1527,17 @@ test("live with multiple events", function(){
}); });
test("live with namespaces", function(){ test("live with namespaces", function(){
expect(12); expect(15);
var count1 = 0, count2 = 0; var count1 = 0, count2 = 0;
jQuery("#liveSpan1").live("foo.bar", function(e){ jQuery("#liveSpan1").live("foo.bar", function(e){
equals( e.namespace, "bar", "namespace is bar" );
count1++; count1++;
}); });
jQuery("#liveSpan1").live("foo.zed", function(e){ jQuery("#liveSpan1").live("foo.zed", function(e){
equals( e.namespace, "zed", "namespace is zed" );
count2++; count2++;
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment