Skip to content

Commit

Permalink
Merge pull request #1597 from alphagov/remove-jquery-from-details
Browse files Browse the repository at this point in the history
Remove jQuery from details component
  • Loading branch information
injms authored Jul 13, 2020
2 parents 2b4d1ff + 40f2194 commit 043db0f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
var detailsClick = detailsComponent.querySelector('[data-details-track-click]')
var that = this

$(detailsClick).click(function (e) {
detailsClick.addEventListener('click', function (event) {
that.trackDefault(detailsComponent)
})
}
Expand All @@ -37,7 +37,7 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
trackOptions = {}
}

trackOptions['label'] = componentStatus
trackOptions.label = componentStatus

if (trackAction && trackCategory) {
window.GOVUK.analytics.trackEvent(trackCategory, trackAction, trackOptions)
Expand Down

0 comments on commit 043db0f

Please sign in to comment.