let data = Data.get(element, DATA_KEY)
if (!data) {
data = new Alert(element)
}
can be
const data = Alert.getOrCreateInstance(element)
let data = Data.get(element, DATA_KEY)
if (!data) {
data = new Alert(element)
}
can be
const data = Alert.getOrCreateInstance(element)