on master help sign in
fix spacing
62dc6e8Evan Czaplicki
runtime/Render/Element.js+7−7
@@ -25,14 +25,14 @@ function setProps(props, e) {
25 if (props.hover.ctor !== '_Tuple0') {
25 if (props.hover.ctor !== '_Tuple0') {
26 var overCount = 0;
26 var overCount = 0;
27 e.addEventListener('mouseover', function() {
27 e.addEventListener('mouseover', function() {
28− if (overCount++ > 0) return;
28+ if (overCount++ > 0) return;
29− props.hover(true);
29+ props.hover(true);
30− });
30+ });
31 e.addEventListener('mouseout', function(evt) {
31 e.addEventListener('mouseout', function(evt) {
32− if (e.contains(evt.toElement || evt.relatedTarget)) return;
32+ if (e.contains(evt.toElement || evt.relatedTarget)) return;
33− overCount = 0;
33+ overCount = 0;
34− props.hover(false);
34+ props.hover(false);
35− });
35+ });
36 }
36 }
37 return e;
37 return e;
38}
38}