             return @__location = new Location(href)
 
         return window
-
-    # TODO: update this once we move more stuff into advice.
-    getSnapshot : () ->
-        if @currentWindow
-            return serialize(@currentWindow.document, @browser.resources)
-        return null
 
     # Clear JSDOM out of the require cache.  We have to do this because
     # we modify JSDOM's internal data structures with per-BrowserInstance

Request              = require('request')
ImportXMLHttpRequest = require('./XMLHttpRequest').ImportXMLHttpRequest
LocationBuilder      = require('./location').LocationBuilder
serialize            = require('./serializer').serialize
addAdvice            = require('./newadvice').addAdvice
wrapStyle            = require('./newadvice').wrapStyle
applyPatches         = require('./patches').applyPatches

# A DOM that emits events whenever the DOM changes.
# TODO: document the protocol here.
class DOM extends EventEmitter
    constructor : (browser) ->
        @browser = browser

        # Copy over some useful objects from our namespace.
        window.JSON = JSON
        window.console = console

        # Thanks Zombie for Image code 
        self = this
