mirror of
https://gitee.com/dgflash/oops-plugin-framework.git
synced 2026-05-30 18:39:18 +08:00
修复对象池直接执行clear方法报错问题
This commit is contained in:
@@ -202,8 +202,8 @@ export class EffectSingleCase {
|
||||
*/
|
||||
clear(path?: string) {
|
||||
if (path) {
|
||||
var np = this.effects.get(path)!;
|
||||
np.clear();
|
||||
var np = this.effects.get(path);
|
||||
if (np) np.clear();
|
||||
}
|
||||
else {
|
||||
this.effects.forEach(np => {
|
||||
|
||||
Reference in New Issue
Block a user