Leaflet/Leaflet — pull request #1312 by yohanboniface (2013-01-24 18:22:26+00:00)
Title: Add a L.DomEvent.only shortcut

I'm often doing pieces of code like:

```
L.DomEvent
.on(element, "click", L.DomEvent.stop)
.on(element, "click", myfunc)
```

So I wonder if some shortcut can save us this kind of boilerplate.

Here is some suggestion. Actually, I'm not sure of the name of such a shortcut. I've used `only`, but it doesn't exactly say "prevent-and-stop-and-add-one". Others options can be `reset`, `stopAndAdd`, `exclusive`...

Of course, I can add this on my own code. But maybe other users can feel the same need.

Anyway, feel free to trash it if it's not "core-proof" ;)