| 780 | } |
| 781 | |
| 782 | void Node::unschedule() { |
| 783 | if (!_updateItem) return; |
| 784 | if (_updateItem->scheduledMainFunc) { |
| 785 | _updateItem->scheduledMainFunc = nullptr; |
| 786 | if (_flags.isOff(Node::Updating) && _updateItem->scheduledItem->iter) { |
| 787 | _scheduler->unschedule(_updateItem->scheduledItem.get()); |
| 788 | } |
| 789 | } |
| 790 | } |
| 791 | |
| 792 | void Node::onUpdate(const Update& func) { |
| 793 | auto updateItem = getUpdateItem(); |
no test coverage detected