splendeo/jquery.observe_field — pull request #4 by jordanbyron (2012-07-31 17:52:20+00:00)
Title: Fix bug in IE9 when observed elements are removed from the DOM

Hi @splendeo,

I stumbled upon a bug in IE9 when using `observe_field` on elements that were eventually removed from the DOM. The timer kept firing after the elements were removed, causing erroneous callbacks. This patch first checks to make sure the element is still on the page, and if not clears the timer and stops checking for updates.

To replicate in IE9:

```html

Remove
​

```

Clicking remove will fire the alert when it should instead never be triggered.

If there is anything you'd like me to change just let me know. Thanks!

Jordan