| 1 | <!DOCTYPE html> |
|---|
| 2 | <html> |
|---|
| 3 | <head> |
|---|
| 4 | <title>jQuery 1.3.2 bug</title> |
|---|
| 5 | <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> |
|---|
| 6 | <script type="text/javascript"> |
|---|
| 7 | $(window).bind("test.aa.b", function() { |
|---|
| 8 | alert("ERROR"); |
|---|
| 9 | }); |
|---|
| 10 | $(window).trigger("test.a.b"); |
|---|
| 11 | /* |
|---|
| 12 | the order of namespaces doesn't matter - only the first namespace seems to be affected, and only if it's not alone |
|---|
| 13 | |
|---|
| 14 | .a.b triggers .aa.b |
|---|
| 15 | .a.b.c.d triggers .aa.b.c.d |
|---|
| 16 | .begin.two triggers .beginning.two |
|---|
| 17 | |
|---|
| 18 | |
|---|
| 19 | .a doesn't trigger .aa |
|---|
| 20 | */ |
|---|
| 21 | </script> |
|---|
| 22 | </head> |
|---|
| 23 | <body> |
|---|
| 24 | <h1>jQuery 1.3.2 event bug</h1> |
|---|
| 25 | </body> |
|---|
| 26 | </html> |
|---|