chore(reactivity): remove unecessary array copy (#12400)

This commit is contained in:
edison 2024-11-15 10:37:24 +08:00 committed by GitHub
parent a49858f3ee
commit 70b44ca835
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 3 deletions

View File

@ -119,9 +119,8 @@ export class EffectScope {
if (this._active) {
this._active = false
let i, l
const effects = this.effects.slice()
for (i = 0, l = effects.length; i < l; i++) {
effects[i].stop()
for (i = 0, l = this.effects.length; i < l; i++) {
this.effects[i].stop()
}
this.effects.length = 0