Skip to content

Commit f8d4e76

Browse files
chore(addon/components/paper-item): pushes types down to booleans and simplifies bitwise operation for developers to an or.
1 parent e1eda8e commit f8d4e76

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

addon/components/paper-item.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ export default class PaperItem extends Component.extend(ParentMixin) {
8585
click() {
8686
this.proxiedComponents.forEach((component) => {
8787
if (
88-
component.processProxy &&
88+
!!component.processProxy &&
8989
!component.disabled &&
90-
component.bubbles | !this.hasPrimaryAction
90+
!!(component.bubbles || !this.hasPrimaryAction)
9191
) {
9292
component.processProxy();
9393
}

0 commit comments

Comments
 (0)