@@ -53,11 +53,11 @@ function create_fragment(ctx) {
53
53
div7 = element ( "div" ) ;
54
54
t7 = space ( ) ;
55
55
div8 = element ( "div" ) ;
56
- toggle_class ( div0 , "update1 " , reactiveModuleVar ) ;
57
- toggle_class ( div1 , "update2" , /*reactiveConst*/ ctx [ 0 ] . x ) ;
58
- toggle_class ( div2 , "update3 " , nonReactiveGlobal && /*reactiveConst */ ctx [ 0 ] . x ) ;
59
- toggle_class ( div3 , "update4 " , /*$reactiveStoreVal */ ctx [ 2 ] ) ;
60
- toggle_class ( div4 , "update5 " , /*$reactiveDeclaration*/ ctx [ 3 ] ) ;
56
+ toggle_class ( div0 , "update2 " , /*reactiveConst*/ ctx [ 0 ] . x ) ;
57
+ toggle_class ( div1 , "update3" , nonReactiveGlobal && /*reactiveConst*/ ctx [ 0 ] . x ) ;
58
+ toggle_class ( div2 , "update4 " , /*$reactiveStoreVal */ ctx [ 2 ] ) ;
59
+ toggle_class ( div3 , "update5 " , /*$reactiveDeclaration */ ctx [ 3 ] ) ;
60
+ toggle_class ( div4 , "update1 " , reassignedModuleVar ) ;
61
61
toggle_class ( div5 , "static1" , nonReactiveModuleVar ) ;
62
62
toggle_class ( div6 , "static2" , nonReactiveGlobal ) ;
63
63
toggle_class ( div7 , "static3" , nonReactiveModuleVar && nonReactiveGlobal ) ;
@@ -83,24 +83,20 @@ function create_fragment(ctx) {
83
83
insert ( target , div8 , anchor ) ;
84
84
} ,
85
85
p ( ctx , [ dirty ] ) {
86
- if ( dirty & /*reactiveModuleVar*/ 0 ) {
87
- toggle_class ( div0 , "update1" , reactiveModuleVar ) ;
88
- }
89
-
90
86
if ( dirty & /*reactiveConst*/ 1 ) {
91
- toggle_class ( div1 , "update2" , /*reactiveConst*/ ctx [ 0 ] . x ) ;
87
+ toggle_class ( div0 , "update2" , /*reactiveConst*/ ctx [ 0 ] . x ) ;
92
88
}
93
89
94
90
if ( dirty & /*nonReactiveGlobal, reactiveConst*/ 1 ) {
95
- toggle_class ( div2 , "update3" , nonReactiveGlobal && /*reactiveConst*/ ctx [ 0 ] . x ) ;
91
+ toggle_class ( div1 , "update3" , nonReactiveGlobal && /*reactiveConst*/ ctx [ 0 ] . x ) ;
96
92
}
97
93
98
94
if ( dirty & /*$reactiveStoreVal*/ 4 ) {
99
- toggle_class ( div3 , "update4" , /*$reactiveStoreVal*/ ctx [ 2 ] ) ;
95
+ toggle_class ( div2 , "update4" , /*$reactiveStoreVal*/ ctx [ 2 ] ) ;
100
96
}
101
97
102
98
if ( dirty & /*$reactiveDeclaration*/ 8 ) {
103
- toggle_class ( div4 , "update5" , /*$reactiveDeclaration*/ ctx [ 3 ] ) ;
99
+ toggle_class ( div3 , "update5" , /*$reactiveDeclaration*/ ctx [ 3 ] ) ;
104
100
}
105
101
} ,
106
102
i : noop ,
@@ -130,7 +126,7 @@ function create_fragment(ctx) {
130
126
}
131
127
132
128
let nonReactiveModuleVar = Math . random ( ) ;
133
- let reactiveModuleVar = Math . random ( ) ;
129
+ let reassignedModuleVar = Math . random ( ) ;
134
130
135
131
function instance ( $$self , $$props , $$invalidate ) {
136
132
let reactiveDeclaration ;
@@ -144,13 +140,13 @@ function instance($$self, $$props, $$invalidate) {
144
140
$$self . $$ . on_destroy . push ( ( ) => $$unsubscribe_reactiveDeclaration ( ) ) ;
145
141
nonReactiveGlobal = Math . random ( ) ;
146
142
const reactiveConst = { x : Math . random ( ) } ;
147
- reactiveModuleVar += 1 ;
143
+ reassignedModuleVar += 1 ;
148
144
149
145
if ( Math . random ( ) ) {
150
146
reactiveConst . x += 1 ;
151
147
}
152
148
153
- $: $$subscribe_reactiveDeclaration ( $$invalidate ( 1 , reactiveDeclaration = reactiveModuleVar * 2 ) ) ;
149
+ $: $$subscribe_reactiveDeclaration ( $$invalidate ( 1 , reactiveDeclaration = reassignedModuleVar * 2 ) ) ;
154
150
return [ reactiveConst , reactiveDeclaration , $reactiveStoreVal , $reactiveDeclaration ] ;
155
151
}
156
152
0 commit comments