Merge pull request #113 from MoOx/cleanup/analytics
Cleanup default analytics function
This commit was merged in pull request #113.
This commit is contained in:
4
index.js
4
index.js
@@ -279,7 +279,9 @@ Pjax.prototype = {
|
||||
// Fire Events
|
||||
trigger(document,"pjax:complete pjax:success", state.options)
|
||||
|
||||
state.options.analytics()
|
||||
if (typeof state.options.analytics === "function") {
|
||||
state.options.analytics()
|
||||
}
|
||||
|
||||
if (state.options.history) {
|
||||
// First parse url and check for hash to override scroll
|
||||
|
||||
Reference in New Issue
Block a user