Skip to content

Commit

Permalink
Bumped version to 7.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiospampinato committed Apr 15, 2020
1 parent 445c43f commit 97af279
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 8 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### Version 7.0.1
- $.fn.css: added support for retrieving properties of disconnected nodes

### Version 7.0.0
- focus|blur|mouseenter|mouseleave: ensuring namespaces are handled properly
- focus|blur|mouseenter|mouseleave: aligned behavior more with jQuery
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ If you're migrating from jQuery be sure to read our [migration guide](https://gi

## Usage

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:
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:

```html
<script src="https://cdnjs.cloudflare.com/ajax/libs/cash/7.0.0/cash.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/cash/7.0.1/cash.min.js"></script>
<script>
$(function () {
$('html').addClass ( 'dom-loaded' );
Expand Down
2 changes: 1 addition & 1 deletion dist/cash.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ function computeStyle(ele, prop, isVariable) {
if (!isElement(ele))
return;
const style = win.getComputedStyle(ele, null);
return isVariable ? style.getPropertyValue(prop) || undefined : style[prop];
return isVariable ? style.getPropertyValue(prop) || undefined : style[prop] || ele.style[prop];
}
// @require ./compute_style.ts
function computeStyleInt(ele, prop) {
Expand Down
2 changes: 1 addition & 1 deletion dist/cash.js
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ fn.add = function (selector, context) {
function computeStyle(ele, prop, isVariable) {
if (!isElement(ele)) return;
var style = win.getComputedStyle(ele, null);
return isVariable ? style.getPropertyValue(prop) || undefined : style[prop];
return isVariable ? style.getPropertyValue(prop) || undefined : style[prop] || ele.style[prop];
} // @require ./compute_style.ts


Expand Down
4 changes: 2 additions & 2 deletions dist/cash.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/cash.ts
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,7 @@ function computeStyle ( ele: EleLoose, prop: string, isVariable?: boolean ): str

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

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

}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "cash-dom",
"description": "An absurdly small jQuery alternative for modern browsers.",
"version": "7.0.0",
"version": "7.0.1",
"license": "MIT",
"browser": "./dist/cash.js",
"main": "./dist/cash.js",
Expand Down

0 comments on commit 97af279

Please sign in to comment.