summaryrefslogtreecommitdiffstats
path: root/app/common/directives/toggle-flag.js
diff options
context:
space:
mode:
authorGunnar Mills <gmills@us.ibm.com>2018-02-28 17:02:34 -0600
committerGunnar Mills <gmills@us.ibm.com>2018-03-05 11:49:45 -0600
commiteedefd3ead28d0d276539552faad54bb709a7af5 (patch)
tree15288802210bd7049e9dea426d2866d764277b0b /app/common/directives/toggle-flag.js
parent9b733bdc51d3f9abffa18863cad28b5dd9c92f6f (diff)
downloadphosphor-webui-eedefd3ead28d0d276539552faad54bb709a7af5.tar.gz
phosphor-webui-eedefd3ead28d0d276539552faad54bb709a7af5.zip
Remove trailing spaces from files
Tested: Manually tested GUI for any regressions Change-Id: I8c0922b7bd67b03b07e8880bc4dba3b862220b33 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
Diffstat (limited to 'app/common/directives/toggle-flag.js')
-rw-r--r--app/common/directives/toggle-flag.js8
1 files changed, 4 insertions, 4 deletions
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);
OpenPOWER on IntegriCloud