Need to call ``doc.addRef()`` and ``doc.releaseRef()`` when adding/removing listeners. @peterflynn always gets me for this one too. :)