You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some [extra methods](https://github.com/kenwheeler/cash/tree/master/src/extra) are available but [disabled](https://github.com/kenwheeler/cash/blob/master/pacco.json#L3) by default.
Copy file name to clipboardExpand all lines: docs/migration_guide.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,10 @@ $('#foo').nextAll ( '.bar' );
24
24
$('#foo').next ( '.bar' );
25
25
```
26
26
27
+
### Data caching
28
+
29
+
In jQuery the `$.fn.data` function caches retrieved values, and doesn't refresh them when they are updated outside of jQuery (e.g. via the `dataset` API), this makes jQuery's `$.fn.data` function unusable with libraries like React. Cash doesn't implement such caching functionality and doesn't have this problem, the retrieved values are always fresh.
30
+
27
31
### Events
28
32
29
33
Cash's event system relies heavily on the browser's underlying event system so there are some differences when comparing it with jQuery's.
0 commit comments