From d2f9a3ad98139b83a50340f9aa9521b3f28792b9 Mon Sep 17 00:00:00 2001 From: Chris Pymm Date: Wed, 25 Sep 2024 10:34:24 +0100 Subject: [PATCH] fix(all): fix compiling of all.js --- src/moj/components/password-reveal/password-reveal.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/moj/components/password-reveal/password-reveal.js b/src/moj/components/password-reveal/password-reveal.js index a8fb2f59a..0d64ee5f6 100644 --- a/src/moj/components/password-reveal/password-reveal.js +++ b/src/moj/components/password-reveal/password-reveal.js @@ -1,4 +1,4 @@ -PasswordReveal = function(element) { +MOJFrontend.PasswordReveal = function(element) { this.el = element; var $el = $(this.el) @@ -14,13 +14,13 @@ PasswordReveal = function(element) { this.createButton(); }; -PasswordReveal.prototype.createButton = function() { +MOJFrontend.PasswordReveal.prototype.createButton = function() { this.button = $(''); this.container.append(this.button); this.button.on('click', $.proxy(this, 'onButtonClick')); }; -PasswordReveal.prototype.onButtonClick = function() { +MOJFrontend.PasswordReveal.prototype.onButtonClick = function() { if (this.el.type === 'password') { this.el.type = 'text'; this.button.html('Hide password'); @@ -30,4 +30,3 @@ PasswordReveal.prototype.onButtonClick = function() { } }; -MOJFrontend.PasswordReveal = PasswordReveal