* Execute callback at the end of current frame * 在当前帧结束时执行回调 * * @param caller Callback context | 回调上下文 * @param callback Callback function | 回调函数
(caller: any, callback: Function)
| 178 | * @param callback Callback function | 回调函数 |
| 179 | */ |
| 180 | public callLater(caller: any, callback: Function): void { |
| 181 | const list = this._updating ? this._callLaterPending : this._callLaterList; |
| 182 | |
| 183 | const exists = list.some( |
| 184 | (item) => item.caller === caller && item.callback === callback |
| 185 | ); |
| 186 | |
| 187 | if (!exists) { |
| 188 | list.push({ caller, callback }); |
| 189 | } |
| 190 | } |
| 191 | |
| 192 | /** |
| 193 | * Clear a specific callback |
no test coverage detected