@@ -15,11 +15,11 @@ function cleanSource(nodes) {
15
15
} )
16
16
}
17
17
18
- function markDirtyUp ( node ) {
18
+ function markTreeDirty ( node ) {
19
19
node [ isClean ] = false
20
20
if ( node . proxyOf . nodes ) {
21
21
for ( let i of node . proxyOf . nodes ) {
22
- markDirtyUp ( i )
22
+ markTreeDirty ( i )
23
23
}
24
24
}
25
25
}
@@ -153,7 +153,11 @@ class Container extends Node {
153
153
insertBefore ( exist , add ) {
154
154
let existIndex = this . index ( exist )
155
155
let type = existIndex === 0 ? 'prepend' : false
156
- let nodes = this . normalize ( add , this . proxyOf . nodes [ existIndex ] , type ) . reverse ( )
156
+ let nodes = this . normalize (
157
+ add ,
158
+ this . proxyOf . nodes [ existIndex ] ,
159
+ type
160
+ ) . reverse ( )
157
161
existIndex = this . index ( exist )
158
162
for ( let node of nodes ) this . proxyOf . nodes . splice ( existIndex , 0 , node )
159
163
@@ -209,7 +213,7 @@ class Container extends Node {
209
213
if ( ! i [ my ] ) Container . rebuild ( i )
210
214
i = i . proxyOf
211
215
if ( i . parent ) i . parent . removeChild ( i )
212
- if ( i [ isClean ] ) markDirtyUp ( i )
216
+ if ( i [ isClean ] ) markTreeDirty ( i )
213
217
if ( typeof i . raws . before === 'undefined' ) {
214
218
if ( sample && typeof sample . raws . before !== 'undefined' ) {
215
219
i. raws . before = sample . raws . before . replace ( / \S / g, '' )
0 commit comments