   for prop in ["hash", "host", "hostname", "pathname", "port", "protocol", "search"]
     do (prop)=>
       @prototype.__defineGetter__ prop, ->
-        @_url?[prop] || ""
+        @_history.current?[prop] || ""
       @prototype.__defineSetter__ prop, (value)->
-        newUrl = URL.parse(@_url?.href)
+        newUrl = URL.parse(@_history.current?.href)
         newUrl[prop] = value
         @_history._assign URL.format(newUrl)
 

    # History is a stack of Entry objects.
    @_stack = []
    @_index = 0
    @_location = new Location(this, ABOUT_BLANK)

  # Apply to window.
  _use: (window)->

    # Add Location/History to window.
    Object.defineProperty @_window, "location",
      get: =>
        return @_location
      set: (url)=>
        @_assign @_resolve(url)
