Skip to content

Commit 0a7c230

Browse files
committed
- Added removeStyle method.
- Added removeStyle method to Query. - Added shallow option to isEqual method. - Added shallow option to isEqual Query method. - Updated tests. - Updated README.~
1 parent be4fedd commit 0a7c230

File tree

18 files changed

+354
-121
lines changed

18 files changed

+354
-121
lines changed

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1057,6 +1057,17 @@ Remove a class or classes from each node.
10571057
$.removeClass(selector, ...classes);
10581058
```
10591059

1060+
**Remove Style**
1061+
1062+
Remove a style property from each node.
1063+
1064+
- `selector` is a query selector string, a *HTMLElement*, *NodeList*, *HTMLCollection*, [*QuerySet*](docs/QuerySet.md) or an array of nodes.
1065+
- `style` is a string indicating the style property value to remove.
1066+
1067+
```javascript
1068+
$.removeStyle(selector, style);
1069+
```
1070+
10601071
**Set Style**
10611072

10621073
Set style properties for each node.
@@ -2594,9 +2605,11 @@ Returns *true* if any of the nodes is considered equal to any of the other nodes
25942605

25952606
- `selector` is a query selector string, a *Node*, *HTMLElement*, *DocumentFragment*, *ShadowRoot*, *NodeList*, *HTMLCollection*, [*QuerySet*](docs/QuerySet.md) or an array of nodes.
25962607
- `otherSelector` is a query selector string, a *Node*, *HTMLElement*, *DocumentFragment*, *ShadowRoot*, *NodeList*, *HTMLCollection*, [*QuerySet*](docs/QuerySet.md) or an array of nodes.
2608+
- `options` is an object containing options for how to perform the comparison.
2609+
- `shallow` is a boolean indicating whether to perform a shallow comparison, and will default to *false*.
25972610

25982611
```javascript
2599-
const isEqual = $.isEqual(selector, otherSelector);
2612+
const isEqual = $.isEqual(selector, otherSelector, options);
26002613
```
26012614

26022615
**Is Fixed**

dist/fquery.js

Lines changed: 42 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/fquery.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/fquery.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/fquery.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/QuerySet.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,6 +778,16 @@ Remove a class or classes from each node.
778778
query.removeClass(...classes);
779779
```
780780

781+
**Remove Style**
782+
783+
Remove a style property from each node.
784+
785+
- `style` is a string indicating the style property value to remove.
786+
787+
```javascript
788+
query.removeStyle(style);
789+
```
790+
781791
**Set Style**
782792

783793
Set style properties for each node.
@@ -2072,9 +2082,11 @@ const isConnected = query.isConnected();
20722082
Returns *true* if any of the nodes is considered equal to any of the other nodes.
20732083

20742084
- `otherSelector` is a query selector string, a *Node*, *HTMLElement*, *DocumentFragment*, *ShadowRoot*, *NodeList*, *HTMLCollection*, *QuerySet* or an array of nodes.
2085+
- `options` is an object containing options for how to perform the comparison.
2086+
- `shallow` is a boolean indicating whether to perform a shallow comparison, and will default to *false*.
20752087

20762088
```javascript
2077-
const isEqual = query.isEqual(otherSelector);
2089+
const isEqual = query.isEqual(otherSelector, options);
20782090
```
20792091

20802092
**Is Fixed**

0 commit comments

Comments
 (0)