File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -21,9 +21,7 @@ class VueEffectScope extends EffectScope {
21
21
22
22
stop ( ) {
23
23
super . stop ( ) ;
24
- for ( const cb of this . onDispose ) {
25
- cb ( ) ;
26
- }
24
+ this . onDispose . forEach ( cb => cb ( ) ) ;
27
25
}
28
26
}
29
27
@@ -78,12 +76,6 @@ class VueComputed<T = any> extends Computed<T> {
78
76
}
79
77
80
78
export class ReactiveEffect extends Effect {
81
- onDispose : ( ( ) => void ) [ ] = [ ] ;
82
-
83
- constructor ( fn : ( ) => void ) {
84
- super ( fn ) ;
85
- }
86
-
87
79
get dirty ( ) {
88
80
if ( this . versionOrDirtyLevel === DirtyLevels . MaybeDirty ) {
89
81
Subscriber . resolveMaybeDirty ( this ) ;
@@ -97,9 +89,6 @@ export class ReactiveEffect extends Effect {
97
89
98
90
stop ( ) {
99
91
Subscriber . clearTrack ( this ) ;
100
- for ( const cb of this . onDispose ) {
101
- cb ( ) ;
102
- }
103
92
}
104
93
}
105
94
You can’t perform that action at this time.
0 commit comments