fat/bean — pull request #62 by mcmire (2012-03-12 00:50:57+00:00)
Title: Modify how nested namespaced events are fired/removed

Currently there is no way to do an exact match when firing/removing events with multiple namespaces -- if I say `fire("click.foo.bar.baz")`, Bean thinks I mean to fire all click events that have any of the "foo", "bar" or "baz" namespaces, when what I want to do is fire events which have (at least) all three namespaces. So this change changes (ha) the behavior so it means exactly that. (Same thing for `remove()`.)

I realize this is a backward compatible change, but if it's any consolation we wouldn't be removing the ability to match "any", because we already have a way to do that: `fire("click.foo click.bar click.baz")`. Also, actually, this is consistent with jQuery. The jQuery tests are a bit unclear, but if you take the changes I've made to the Bean tests, and try reproducing them in the Chrome dev console on a page that has jQuery on it, then you should see that jQuery is doing an "all" match.

If there is another way to do an exact match when firing/removing events without doing this, then I'm all ears...