| 107 | } |
| 108 | |
| 109 | void PopupLayer::close() |
| 110 | { |
| 111 | this->runAction(Sequence::create(DelayTime::create(0), CallFunc::create([this]() { |
| 112 | Director::getInstance()->getEventDispatcher()->removeEventListenersForTarget(this); |
| 113 | this->removeFromParent(); |
| 114 | }), nullptr)); |
| 115 | } |