mkraemer/react-inotify — pull request #4 by clue (2013-02-14 21:40:22+00:00)
Title: Add close() method and only start handler once events are added

This PR adds a `close()` method commonly used in react-universe to remove all pending events. Also, the handler is now only registered once events are actually added to it.

It's also safe to create an instance, add events (only the first one registers the handler), close all handlers (which removes the handler again) and then add events again (which registers the handler again).