               event.preventDefault();
               @updateUrl(href)
 
+  blog: (str, v) =>
+    @log(str + ", result: " + v)
+    v
+
   leftMouseButton: (event) =>
     event.which? && event.which == 1 || event.button == 0
 

      @addListener document, "click", (event) =>
        target = event.target
        if target
          aTag = @findATag(target)
          if aTag && @leftMouseButton(event) && !@metakeyPressed(event) && @targetAttributeIsCurrentWindow(aTag) && @targetHostSame(aTag)
            href = aTag.attributes.href.nodeValue
            @log("Processing click", href)
            if !@pushStateSupport && @hashchangeSupport && @hashBaseUrl && @hashBaseUrl != window.location.pathname
              event.preventDefault();
              window.location.href = @hashBaseUrl + "#!" + href
              return

      if target.tagName == "A"
        return target
      target = target.parentElement
    false

  metakeyPressed: (event) =>
    (event.shiftKey || event.ctrlKey || event.altKey || event.metaKey)
