From eedefd3ead28d0d276539552faad54bb709a7af5 Mon Sep 17 00:00:00 2001 From: Gunnar Mills Date: Wed, 28 Feb 2018 17:02:34 -0600 Subject: Remove trailing spaces from files Tested: Manually tested GUI for any regressions Change-Id: I8c0922b7bd67b03b07e8880bc4dba3b862220b33 Signed-off-by: Gunnar Mills --- app/common/directives/toggle-flag.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'app/common/directives/toggle-flag.js') diff --git a/app/common/directives/toggle-flag.js b/app/common/directives/toggle-flag.js index aca09ca..9c342b0 100644 --- a/app/common/directives/toggle-flag.js +++ b/app/common/directives/toggle-flag.js @@ -7,19 +7,19 @@ window.angular && (function (angular) { return { restrict: 'A', link: function (scope, element, attrs) { - + function elementClick(e) { e.stopPropagation(); } - + function documentClick(e) { scope[attrs.toggleFlag] = false; scope.$apply(); } - + element.on('click', elementClick); $document.on('click', documentClick); - + // remove event handlers when directive is destroyed scope.$on('$destroy', function () { element.off('click', elementClick); -- cgit v1.2.1