Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 2764ac8

Browse files
committed
braces on same line
1 parent 59db40c commit 2764ac8

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/components/tooltip/tooltip.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,12 @@ function MdTooltipDirective($timeout, $window, $$rAF, $document, $mdUtil, $mdThe
9292
content.css('transform-origin', origin);
9393
}
9494

95-
function onVisibleChanged(isVisible)
96-
{
95+
function onVisibleChanged (isVisible) {
9796
if (isVisible) showTooltip();
9897
else hideTooltip();
9998
}
10099

101-
function configureWatchers ()
102-
{
100+
function configureWatchers () {
103101
scope.$on('$destroy', function() {
104102
scope.visible = false;
105103
element.remove();
@@ -126,8 +124,7 @@ function MdTooltipDirective($timeout, $window, $$rAF, $document, $mdUtil, $mdThe
126124
scope.visibleWatcher = scope.$watch('visible', onVisibleChanged );
127125

128126
}
129-
else // MutationObserver not supported
130-
{
127+
else { // MutationObserver not supported
131128
scope.visibleWatcher = scope.$watch('visible', onVisibleChanged );
132129
scope.$watch('direction', updatePosition );
133130
}

0 commit comments

Comments
 (0)