 window.onload = main
 
 window.onhashchange = (e) ->
+    ###
     slog "onhashchange: #{location.hash}"
     slog "newURL: #{e.newURL}"
     slog "oldURL: #{e.oldURL}"
+    ###
 
     reload = false
 

    reload ||= reloadWhiteList.test(hash)

    if reload
        slog "loading: #{e.newURL}"
        window.location.reload()
    else
        slog "skipping: #{e.newURL}"



# To temporarily introspect variables during development.
spy = window
slog = console.log # spy + log
slog = () -> null

spy.resolveCb = (data) ->
    window.d = data
