Skip to content

Commit

Permalink
change to new way of init modules
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickpatrickpatrick committed Nov 13, 2023
1 parent 06e8623 commit 7b0aa19
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/assets/javascripts/modules/coronavirus-landing-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
(function (Modules) {
function CoronavirusLandingPage ($module) {
this.module = $module
this.init()
}

CoronavirusLandingPage.prototype.init = function () {
Expand Down
1 change: 1 addition & 0 deletions app/assets/javascripts/modules/list-filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
this.filterTimeout = null
this.form = this.$module.querySelector('[data-filter="form"]')
this.searchResults = this.$module.querySelector('#search_results')
this.init()
}

ListFilter.prototype.init = function () {
Expand Down
1 change: 1 addition & 0 deletions app/assets/javascripts/modules/toggle-attribute.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
(function (Modules) {
function ToggleAttribute ($module) {
this.$module = $module
this.init()
}

ToggleAttribute.prototype.init = function () {
Expand Down

0 comments on commit 7b0aa19

Please sign in to comment.