@@ -12,18 +12,18 @@ const nop = ()=>''
1212, isFn = a => isT ( a , 'function' )
1313, isNode = n => n && n . nodeType
1414, inWC = n => n . getRootNode ( ) . host
15- , hasAssigned = n => inWC ( n ) && n . assignedElements
15+ , hasAssigned = n => inWC ( n ) && n . assignedNodes
1616, each = ( arr , cb ) => ( arr . forEach ( cb ) , arr )
1717, clear = n => hasAssigned ( n )
18- ? n . assignedElements ( ) . forEach ( a => a . remove ( ) )
18+ ? n . assignedNodes ( ) . forEach ( a => a . remove ( ) )
1919 : n . innerHTML = '' ;
2020
21- const node2text = { 1 : n => n . assignedElements
22- ? collectionText ( n . assignedElements ( ) ) || collectionText ( n . childNodes )
23- : [ 'SCRIPT' , 'AUDIO' , 'STYLE' , 'CANVAS' , 'DATALIST' , 'EMBED' , 'OBJECT' , 'PICTURE' , 'IFRAME' , 'METER' , 'NOSCRIPT '
24- , 'SELECT ', 'OPTGROUP ' , 'PROGRESS ' , 'TEMPLATE' , 'VIDEO' ]
25- . includes ( n . nodeName ) ? ' '
26- : n . innerText //collectionText(n.children)
21+ const node2text = { 1 : n => n . assignedNodes
22+ ? collectionText ( n . assignedNodes ( ) ) || collectionText ( n . childNodes )
23+ : [ 'SCRIPT' , 'AUDIO' , 'STYLE' , 'CANVAS' , 'DATALIST' , 'EMBED' , 'OBJECT'
24+ , 'PICTURE ', 'IFRAME ' , 'METER ' , 'NOSCRIPT'
25+ , 'SELECT' , 'OPTGROUP' , 'PROGRESS' , 'TEMPLATE' , 'VIDEO '
26+ ] . includes ( n . nodeName ) ? '' : n . innerText //collectionText(n.children)
2727 , 3 : n => n . nodeValue
2828 , 11 :n => collectionText ( n . children )
2929 } ;
@@ -79,7 +79,7 @@ CssChainLocal extends Array
7979 push ( ...args ) { Array . prototype . push . apply ( this , args ) ; return this ; }
8080 querySelector ( css ) { return new CssChainLocal ( ) . push ( this . querySelectorAll ( css ) [ 0 ] ) }
8181 querySelectorAll ( css ) { return this . reduce ( ( $ , el ) => $ . push ( ...el . querySelectorAll ( css ) ) , new CssChainLocal ( ) ) }
82- $ ( ...args ) { return this . querySelectorAll ( ...args ) }
82+ $ ( ...args ) { return args . length ? this . querySelectorAll ( ...args ) : this ; }
8383 parent ( css )
8484 { const s = new Set ( )
8585 , add = n => s . has ( n ) ? 0 : ( s . add ( n ) , n )
0 commit comments