Skip to content

Commit

Permalink
fix: remove undocumented and non-functional panelClick event
Browse files Browse the repository at this point in the history
  • Loading branch information
from-the-river-to-the-sea committed Jul 8, 2018
1 parent 1011e16 commit 1c20d58
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 24 deletions.
6 changes: 0 additions & 6 deletions build/src/dashboard/elements/ncg-dashboard-panel.js
Expand Up @@ -77,12 +77,6 @@ class NcgDashboardPanel extends Polymer.Element {
});
}
}

// Sometimes, we just need to know when a dang click event occurred. No matter where it happened.
// This adds a `panelClick` event to all panels.
iframe.contentDocument.addEventListener('click', e => {
document.dispatchEvent(new CustomEvent('panelClick', e.target));
});
});
}

Expand Down
6 changes: 0 additions & 6 deletions build/src/dashboard/elements/ncg-dialog.js
Expand Up @@ -51,12 +51,6 @@ class NcgDialog extends Polymer.mixinBehaviors([
this._attachIframeResize(iframe);
});
}

// Sometimes, we just need to know when a dang click event occurred. No matter where it happened.
// This adds a `panelClick` event to all panels.
iframe.contentDocument.addEventListener('click', e => {
document.dispatchEvent(new CustomEvent('panelClick', e.target));
});
});
}

Expand Down
6 changes: 0 additions & 6 deletions src/dashboard/elements/ncg-dashboard-panel.js
Expand Up @@ -77,12 +77,6 @@ class NcgDashboardPanel extends Polymer.Element {
});
}
}

// Sometimes, we just need to know when a dang click event occurred. No matter where it happened.
// This adds a `panelClick` event to all panels.
iframe.contentDocument.addEventListener('click', e => {
document.dispatchEvent(new CustomEvent('panelClick', e.target));
});
});
}

Expand Down
6 changes: 0 additions & 6 deletions src/dashboard/elements/ncg-dialog.js
Expand Up @@ -51,12 +51,6 @@ class NcgDialog extends Polymer.mixinBehaviors([
this._attachIframeResize(iframe);
});
}

// Sometimes, we just need to know when a dang click event occurred. No matter where it happened.
// This adds a `panelClick` event to all panels.
iframe.contentDocument.addEventListener('click', e => {
document.dispatchEvent(new CustomEvent('panelClick', e.target));
});
});
}

Expand Down

0 comments on commit 1c20d58

Please sign in to comment.