TheSharpieOne/angular-off-click — pull request #6 by TravisTX (2014-11-30 21:09:31+00:00)
Title: align off-click-if with developer expectations

This PR fixes the issue illustrated in [this plunkr](http://plnkr.co/edit/8vnPWWbhRs7hSq3dlKLu?p=preview), without having to use the off-click-filter feature. Compare to [this fixed plunkr](http://plnkr.co/edit/nzOzYrNeXyQlIvUJzVUz?p=preview).

There is a work around here, using the off-click-filter feature. But I think we can do better, aligning the feature with common developer expectations. The developer is probably expecting the off-click-if to not activate until after the click event has completed, which caused the watched variable to change to true. We can do this by means of a timeout on the document click handler. I feel this approach aligns more with the developer's expectations of off-click-if.