Skip to content

Commit

Permalink
更改占用内存不释放的问题,及参数传递错误问题
Browse files Browse the repository at this point in the history
  • Loading branch information
刘彭涛 committed Jul 8, 2024
1 parent f966327 commit 1d75a1e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/x6/src/model/animation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export class Animation {
options.start && options.start(this.getArgs<T>(key))
}, options.delay)

return this.stop.bind(this, path, delim, options)
return this.stop.bind(this, path, options,delim)
}

stop<T extends Animation.TargetValue>(
Expand Down
3 changes: 2 additions & 1 deletion packages/x6/src/renderer/queueJob.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ export class JobQueue {
} else {
const index = this.findInsertionIndex(job)
if (index >= 0) {
this.queue.splice(index, 0, job)
const itemIndex = this.queue.findIndex((item) => item.id === job.id);
this.queue.splice(itemIndex !== -1 ? itemIndex : index, itemIndex !== -1 ? 1 : 0, job);
}
}
}
Expand Down

0 comments on commit 1d75a1e

Please sign in to comment.