Skip to content

Commit 97af279

Browse files
Bumped version to 7.0.1
1 parent 445c43f commit 97af279

File tree

7 files changed

+11
-8
lines changed

7 files changed

+11
-8
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
### Version 7.0.1
2+
- $.fn.css: added support for retrieving properties of disconnected nodes
3+
14
### Version 7.0.0
25
- focus|blur|mouseenter|mouseleave: ensuring namespaces are handled properly
36
- focus|blur|mouseenter|mouseleave: aligned behavior more with jQuery

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ If you're migrating from jQuery be sure to read our [migration guide](https://gi
3131

3232
## Usage
3333

34-
Get Cash from [CloudFlare](https://cdnjs.cloudflare.com/ajax/libs/cash/7.0.0/cash.min.js) or [jsDelivr](https://cdn.jsdelivr.net/npm/cash-dom@7.0.0/dist/cash.min.js) and use it like this:
34+
Get Cash from [CloudFlare](https://cdnjs.cloudflare.com/ajax/libs/cash/7.0.1/cash.min.js) or [jsDelivr](https://cdn.jsdelivr.net/npm/cash-dom@7.0.1/dist/cash.min.js) and use it like this:
3535

3636
```html
37-
<script src="https://cdnjs.cloudflare.com/ajax/libs/cash/7.0.0/cash.min.js"></script>
37+
<script src="https://cdnjs.cloudflare.com/ajax/libs/cash/7.0.1/cash.min.js"></script>
3838
<script>
3939
$(function () {
4040
$('html').addClass ( 'dom-loaded' );

dist/cash.esm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ function computeStyle(ele, prop, isVariable) {
313313
if (!isElement(ele))
314314
return;
315315
const style = win.getComputedStyle(ele, null);
316-
return isVariable ? style.getPropertyValue(prop) || undefined : style[prop];
316+
return isVariable ? style.getPropertyValue(prop) || undefined : style[prop] || ele.style[prop];
317317
}
318318
// @require ./compute_style.ts
319319
function computeStyleInt(ele, prop) {

dist/cash.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ fn.add = function (selector, context) {
400400
function computeStyle(ele, prop, isVariable) {
401401
if (!isElement(ele)) return;
402402
var style = win.getComputedStyle(ele, null);
403-
return isVariable ? style.getPropertyValue(prop) || undefined : style[prop];
403+
return isVariable ? style.getPropertyValue(prop) || undefined : style[prop] || ele.style[prop];
404404
} // @require ./compute_style.ts
405405

406406

dist/cash.min.js

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

dist/cash.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ function computeStyle ( ele: EleLoose, prop: string, isVariable?: boolean ): str
824824

825825
const style = win.getComputedStyle ( ele, null );
826826

827-
return isVariable ? style.getPropertyValue ( prop ) || undefined : style[prop];
827+
return isVariable ? style.getPropertyValue ( prop ) || undefined : style[prop] || ele.style[prop];
828828

829829
}
830830

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "cash-dom",
33
"description": "An absurdly small jQuery alternative for modern browsers.",
4-
"version": "7.0.0",
4+
"version": "7.0.1",
55
"license": "MIT",
66
"browser": "./dist/cash.js",
77
"main": "./dist/cash.js",

0 commit comments

Comments
 (0)