|
|
@ -41,8 +41,7 @@ page.show = (path, state) ->
|
|
|
|
currentState = context.state
|
|
|
|
currentState = context.state
|
|
|
|
page.dispatch(context)
|
|
|
|
page.dispatch(context)
|
|
|
|
context.pushState()
|
|
|
|
context.pushState()
|
|
|
|
ga?('send', 'pageview', location.pathname + location.search + location.hash)
|
|
|
|
track()
|
|
|
|
_gauges?.push(['track'])
|
|
|
|
|
|
|
|
context
|
|
|
|
context
|
|
|
|
|
|
|
|
|
|
|
|
page.replace = (path, state, skipDispatch, init) ->
|
|
|
|
page.replace = (path, state, skipDispatch, init) ->
|
|
|
@ -51,8 +50,7 @@ page.replace = (path, state, skipDispatch, init) ->
|
|
|
|
currentState = context.state
|
|
|
|
currentState = context.state
|
|
|
|
page.dispatch(context) unless skipDispatch
|
|
|
|
page.dispatch(context) unless skipDispatch
|
|
|
|
context.replaceState()
|
|
|
|
context.replaceState()
|
|
|
|
ga?('send', 'pageview', location.pathname + location.search + location.hash) unless init
|
|
|
|
track() unless init or skipDispatch
|
|
|
|
_gauges?.push(['track'])
|
|
|
|
|
|
|
|
context
|
|
|
|
context
|
|
|
|
|
|
|
|
|
|
|
|
page.dispatch = (context) ->
|
|
|
|
page.dispatch = (context) ->
|
|
|
@ -163,3 +161,8 @@ onclick = (event) ->
|
|
|
|
|
|
|
|
|
|
|
|
isSameOrigin = (url) ->
|
|
|
|
isSameOrigin = (url) ->
|
|
|
|
url.indexOf("#{location.protocol}//#{location.hostname}") is 0
|
|
|
|
url.indexOf("#{location.protocol}//#{location.hostname}") is 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
track = ->
|
|
|
|
|
|
|
|
ga?('send', 'pageview', location.pathname + location.search + location.hash)
|
|
|
|
|
|
|
|
_gauges?.push(['track'])
|
|
|
|
|
|
|
|
return
|
|
|
|