mirror of https://github.com/vuejs/core.git
chore(reactivity): remove unecessary array copy (#12400)
This commit is contained in:
parent
a49858f3ee
commit
70b44ca835
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue