@@ -43,7 +43,7 @@ <h2 id=title>
4343
4444 < script >
4545 {
46-
46+ console . log ( '-- test --' ) ;
4747 let $ = function ( root , css , _ , node , alias , set , get , v , r ) { return (
4848 node = ( ! css && ( css = root , root = this ) , root . querySelector ( css ) ) ,
4949 alias = { txt :'textContent' } ,
@@ -76,6 +76,7 @@ <h3>test</h3>
7676
7777 < script >
7878 {
79+ console . log ( '-- test2 --' ) ;
7980 let $ = function ( root , css , _ , node , alias , set , get , v , r ) { return (
8081 node = ( ! css && ( css = root , root = this ) , root . querySelector ( css ) ) ,
8182 alias = { txt :'textContent' } ,
@@ -101,8 +102,9 @@ <h3>test3</h3>
101102
102103 < script >
103104 {
105+ console . log ( '-- test3 --' ) ;
104106 let $ = function ( root , css , _ , node , alias , set , get , v , r , proxy ) { return (
105- $ . _list = [ ] , $ . _this = document . documentElement ,
107+ ! $ . _list && ( $ . _list = [ ] ) , ! $ . _this && ( $ . _this = document . documentElement ) ,
106108 node = ( ! css && ( css = root , root = $ . _this ) , css ||= ':scope' , root . matches ( css ) && root || root . querySelector ( css ) ) ,
107109 alias = { txt :'textContent' } ,
108110 get = ( value , prop , rec ) => {
@@ -234,8 +236,8 @@ <h3>test4</h3>
234236
235237 < script >
236238 {
237-
238-
239+ console . log ( '-- test4 --' ) ;
240+
239241 let $ = function $ ( root , css , _ , node , alias , set , get , v , r ) { return (
240242 ! $ . _list && ( $ . _list = [ ] ) , ! $ . _this && ( $ . _this = document . documentElement ) ,
241243 node = ( ! css && ( css = root , root = $ . _this ) , css ||= ':scope' , root . matches ( css ) && root || root . querySelector ( css ) ) ,
0 commit comments