Skip to content

Commit

Permalink
1.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
mitera committed Dec 11, 2023
1 parent a37604b commit c8526c7
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 13 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<a name="1.0.5"></a>
# 1.0.5 (2023-12-11)

### release summary

- Code optimize
- Update document

<a name="1.0.4"></a>
# 1.0.4 (2023-12-03)
# 1.0.4 (2023-12-11)

### release summary

Expand Down
8 changes: 3 additions & 5 deletions dist/vanilla-match-height.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* vanilla-match-height v1.0.4 by @mitera
* vanilla-match-height v1.0.5 by @mitera
* Simone Miterangelis <simone@mite.it>
* License: MIT
*/
Expand Down Expand Up @@ -65,17 +65,15 @@
if (this.settings.events) {
var $this = this;
this.bind = function(){ $this._applyAll($this); };
window.addEventListener("DOMContentLoaded", this.bind, { once: true });
this._init(true);
}
}

/**
* Initialize the application
@param {boolean} DOMContentLoaded
*/
MatchHeight.prototype._init = function(DOMContentLoaded) {

if (DOMContentLoaded) window.addEventListener("DOMContentLoaded", this.bind, { once: true });
MatchHeight.prototype._init = function() {

window.addEventListener("resize", this.bind);

Expand Down
2 changes: 1 addition & 1 deletion dist/vanilla-match-height.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 package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vanilla-match-height",
"version": "1.0.4",
"version": "1.0.5",
"license": "MIT",
"author": "Simone Miterangelis <simone@mite.it>",
"description": "a vanilla responsive equal heights",
Expand Down
8 changes: 3 additions & 5 deletions vanilla-match-height.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* vanilla-match-height v1.0.4 by @mitera
* vanilla-match-height v1.0.5 by @mitera
* Simone Miterangelis <simone@mite.it>
* License: MIT
*/
Expand Down Expand Up @@ -65,17 +65,15 @@
if (this.settings.events) {
var $this = this;
this.bind = function(){ $this._applyAll($this); };
window.addEventListener("DOMContentLoaded", this.bind, { once: true });
this._init(true);
}
}

/**
* Initialize the application
@param {boolean} DOMContentLoaded
*/
MatchHeight.prototype._init = function(DOMContentLoaded) {

if (DOMContentLoaded) window.addEventListener("DOMContentLoaded", this.bind, { once: true });
MatchHeight.prototype._init = function() {

window.addEventListener("resize", this.bind);

Expand Down

0 comments on commit c8526c7

Please sign in to comment.