Skip to content

Commit 5a319a7

Browse files
committed
1.1.4
$(css, el with shadowRoot)
1 parent 1216942 commit 5a319a7

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

CssChain.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ Object.getOwnPropertyNames(window)
240240
CssChain( css, el=document, protoArr=[] )
241241
{
242242
const arr = 'string'===typeof css
243-
? el.querySelectorAll( css )
243+
? (el.shadowRoot || el).querySelectorAll( css )
244244
: isArr(css) ? css : [css? css.shadowRoot || css : document];
245245

246246
if( isArr( protoArr ) )

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ _HTML template/slot and DOM manipulation library_
44
_Collection API inherits the element API and Array._
55

66
[![git][github-image] GitHub](https://github.com/sashafirsov/css-chain)
7-
| Demo: [css-chain](https://unpkg.com/[email protected].3/dist/demo.html)
7+
| Demo: [css-chain](https://unpkg.com/[email protected].4/dist/demo.html)
88
| [tests project](https://github.com/sashafirsov/css-chain-test)
99

1010
[![NPM version][npm-image]][npm-url] [![coverage][coverage-image]][coverage-url]
@@ -212,10 +212,10 @@ ApiChain( [a,b] ).f1().f2() // would reuse API generated in previous call
212212
[github-image]: https://cdnjs.cloudflare.com/ajax/libs/octicons/8.5.0/svg/mark-github.svg
213213
[npm-image]: https://img.shields.io/npm/v/css-chain.svg
214214
[npm-url]: https://npmjs.org/package/css-chain
215-
[coverage-image]: https://unpkg.com/[email protected].3/coverage/coverage.svg
216-
[coverage-url]: https://unpkg.com/[email protected].3/coverage/lcov-report/index.html
217-
[PokeApi-explorer-image]: https://unpkg.com/[email protected].3/src/PokeApi-Explorer.png
218-
[PokeApi-explorer-url]: https://unpkg.com/[email protected].3/dist/PokeApi-Explorer.html
215+
[coverage-image]: https://unpkg.com/[email protected].4/coverage/coverage.svg
216+
[coverage-url]: https://unpkg.com/[email protected].4/coverage/lcov-report/index.html
217+
[PokeApi-explorer-image]: https://unpkg.com/[email protected].4/src/PokeApi-Explorer.png
218+
[PokeApi-explorer-url]: https://unpkg.com/[email protected].4/dist/PokeApi-Explorer.html
219219
[css-chain-image]: ChainedCalls.png
220220
[css-chain-link]: https://github.com/sashafirsov/css-chain-test/blob/9edc6edac6bc6c22c078e2fd987b37a7721947ee/src/PokeApi-Explorer.js#L140
221221
[element-api-image]: ElementAPI.png

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "css-chain",
3-
"version": "1.1.3",
3+
"version": "1.1.4",
44
"description": "ApiChain and CssChain JS. Collection API inherits the Array and element API.",
55
"browser": "CssChain.js",
66
"module": "CssChain.js",

0 commit comments

Comments
 (0)