Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 2
    Attention: the version of my answer you accepted the other day had a serious issue that will break in some scenarios. I have re-written it to include fixes (and add features) and you should really re-read it from scratch and port your code to use the fixed version. Commented Jun 16, 2014 at 13:06
  • ^Another^ example of @Caleb's upstanding citizenship. Commented Jun 19, 2014 at 19:56