Skip to content

Commit 5ee079b

Browse files
authored
fix(all): fix compiling of all.js (#758)
1 parent dc0c424 commit 5ee079b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/moj/components/password-reveal/password-reveal.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
PasswordReveal = function(element) {
1+
MOJFrontend.PasswordReveal = function(element) {
22
this.el = element;
33
var $el = $(this.el)
44

@@ -14,13 +14,13 @@ PasswordReveal = function(element) {
1414
this.createButton();
1515
};
1616

17-
PasswordReveal.prototype.createButton = function() {
17+
MOJFrontend.PasswordReveal.prototype.createButton = function() {
1818
this.button = $('<button type="button" class="govuk-button govuk-button--secondary moj-password-reveal__button">Show <span class="govuk-visually-hidden">password</span></button>');
1919
this.container.append(this.button);
2020
this.button.on('click', $.proxy(this, 'onButtonClick'));
2121
};
2222

23-
PasswordReveal.prototype.onButtonClick = function() {
23+
MOJFrontend.PasswordReveal.prototype.onButtonClick = function() {
2424
if (this.el.type === 'password') {
2525
this.el.type = 'text';
2626
this.button.html('Hide <span class="govuk-visually-hidden">password</span>');
@@ -30,4 +30,3 @@ PasswordReveal.prototype.onButtonClick = function() {
3030
}
3131
};
3232

33-
MOJFrontend.PasswordReveal = PasswordReveal

0 commit comments

Comments
 (0)