DelayNoMore/frontend/assets/scripts/SimplePressToGoDialog.js

27 lines
376 B
JavaScript
Raw Permalink Normal View History

2022-09-20 15:50:01 +00:00
cc.Class({
extends: cc.Component,
properties: {
},
start() {
},
onLoad() {
},
update(dt) {
},
dismissDialog(postDismissalByYes, evt) {
const self = this;
const target = evt.target;
self.node.parent.removeChild(self.node);
if ("Yes" == target._name) {
// This is a dirty hack!
postDismissalByYes();
}
}
});