Skip to content
Snippets Groups Projects
Commit 038e1a0f authored by druid's avatar druid
Browse files

code cleanup

parent 41261ef4
No related branches found
No related tags found
No related merge requests found
...@@ -199,13 +199,6 @@ export class HyDesktopMenuLinks { ...@@ -199,13 +199,6 @@ export class HyDesktopMenuLinks {
} }
} }
@Listen('click', {target: 'window'})
handleWindowClick(event) {
this.handleDesktopMenuClose(event);
event.stopPropagation();
}
handleDesktopMenuClose(event) { handleDesktopMenuClose(event) {
let fadeOut = true; let fadeOut = true;
this.closePanel(fadeOut); this.closePanel(fadeOut);
......
...@@ -60,9 +60,9 @@ export class SiteHeader { ...@@ -60,9 +60,9 @@ export class SiteHeader {
@Listen('scroll', {target: 'window'}) @Listen('scroll', {target: 'window'})
handleScroll() { handleScroll() {
if (this.el.getAttribute('menu-type') === 'desktop') { //if (this.el.getAttribute('menu-type') === 'desktop') {
this.didScroll = true; this.didScroll = true;
} //}
} }
componentDidLoad() { componentDidLoad() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment