Tried fixing closing error.
This commit is contained in:
parent
122493df19
commit
66da13aed6
@ -67,18 +67,13 @@ export default class Card {
|
||||
static close(event) {
|
||||
let context = this.getContext(event.target)
|
||||
|
||||
if (context) {
|
||||
if (context.onClose != null) {
|
||||
context.onClose()
|
||||
} else {
|
||||
this.remove(context)
|
||||
}
|
||||
|
||||
// console.error("Remove")
|
||||
// let context = this.getContext(event.target)
|
||||
|
||||
// if (context) {
|
||||
// this.remove(context)
|
||||
// } else console.error('Could not find context!', event.target)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user