From abebd9262957895a20c96fb83c322b7f5988a4ec Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 3 Jun 2017 18:37:12 -0400 Subject: Use dot notation in Javascript component --- assets/js/components/autocomplete-email.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'assets/js') diff --git a/assets/js/components/autocomplete-email.js b/assets/js/components/autocomplete-email.js index 4a12a2fe..9d337e03 100644 --- a/assets/js/components/autocomplete-email.js +++ b/assets/js/components/autocomplete-email.js @@ -6,7 +6,7 @@ KB.onClick('.js-autocomplete-email', function (e) { emailField.build().value = email; } - _KB.controllers['Dropdown'].close(); + _KB.controllers.Dropdown.close(); }); KB.onClick('.js-autocomplete-subject', function (e) { @@ -17,5 +17,5 @@ KB.onClick('.js-autocomplete-subject', function (e) { subjectField.build().value = subject; } - _KB.controllers['Dropdown'].close(); + _KB.controllers.Dropdown.close(); }); -- cgit v1.2.3