tildeio/rsvp.js — pull request #40 by stefanpenner (2013-01-04 07:41:04+00:00)
Title: ObserverMutation memory leak in Chrome 

The Problem
---------------------------

A [Chrome GC issue](http://code.google.com/p/chromium/issues/detail?id=160985
) caused the use MutationObservers to hold onto the global context [leaking the entire document between page reloads](http://jsfiddle.net/yjgng/).

Solution
-----------

Disconnect and null out fhe observer on```window.onunload```

Other solutions where mentioned in the [google code discussion](http://code.google.com/p/chromium/issues/detail?id=160985), but I[ was unable to make them work](http://jsfiddle.net/yjgng/3/).

Affected Browsers:
-------------------------

Past and current Chrome (but fixed in dev channel build Chrome 25)