Skip to content
This repository has been archived by the owner on Nov 30, 2020. It is now read-only.

Commit

Permalink
fix: Fix type check
Browse files Browse the repository at this point in the history
  • Loading branch information
matsp committed Apr 23, 2018
1 parent 4ac021b commit 4a667b8
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
6 changes: 4 additions & 2 deletions components/button/Button.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default {
},
data () {
return {
mdcRipple: null,
mdcRipple: undefined,
slotOberserver: null
}
},
Expand All @@ -81,7 +81,9 @@ export default {
},
beforeDestroy () {
this.slotOberserver.disconnect()
if (typeof this.mdcRipple !== 'null') this.mdcRipple.destroy()
if (typeof this.mdcRipple !== 'undefined') {
this.mdcRipple.destroy()
}
},
methods: {
updateSlot() {
Expand Down
6 changes: 4 additions & 2 deletions components/fab/Fab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default {
},
data () {
return {
mdcRipple: null,
mdcRipple: undefined,
slotOberserver: null
}
},
Expand All @@ -59,7 +59,9 @@ export default {
},
beforeDestroy () {
this.slotOberserver.disconnect()
if (typeof this.mdcRipple !== 'null') this.mdcRipple.destroy()
if (typeof this.mdcRipple !== 'undefined') {
this.mdcRipple.destroy()
}
},
methods: {
updateSlot () {
Expand Down
6 changes: 4 additions & 2 deletions components/list/ListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default {
},
data () {
return {
mdcRipple: null,
mdcRipple: undefined,
slotOberserver: null
}
},
Expand All @@ -70,7 +70,9 @@ export default {
},
beforeDestroy () {
this.slotOberserver.disconnect()
if (typeof this.mdcRipple !== 'null') this.mdcRipple.destroy()
if (typeof this.mdcRipple !== 'undefined') {
this.mdcRipple.destroy()
}
},
methods: {
updateSlots () {
Expand Down
6 changes: 4 additions & 2 deletions components/textfield/Textfield.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export default {
data () {
return {
mdcTextField: null,
mdcRipple: null
mdcRipple: undefined
}
},
computed: {
Expand Down Expand Up @@ -107,7 +107,9 @@ export default {
beforeDestroy () {
this.mdcTextField.destroy()
if (typeof this.mdcRipple !== 'null') this.mdcRipple.destroy()
if (typeof this.mdcRipple !== 'undefined') {
this.mdcRipple.destroy()
}
},
methods: {
onInput (event) {
Expand Down

0 comments on commit 4a667b8

Please sign in to comment.