Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Commit

Permalink
v0.2.1
Browse files Browse the repository at this point in the history
- Fixed lifecycle events node passing
  • Loading branch information
areknawo committed Apr 13, 2020
1 parent 3448966 commit 790c588
Show file tree
Hide file tree
Showing 8 changed files with 284 additions and 284 deletions.
8 changes: 4 additions & 4 deletions dist/isotope.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* @isotope/core v0.2.0
* @isotope/core v0.2.1
* (c) Arek Nawo <[email protected]> (areknawo.com)
* Released under the MIT License.
*/
Expand Down Expand Up @@ -222,7 +222,7 @@
if (this.element.parentElement) {
this.element.parentElement.removeChild(this.element);
}
this.emit("node-removed");
this.emit("node-removed", { node: this });
return this;
}
/**
Expand All @@ -234,7 +234,7 @@
setState(state) {
if (this.state) {
Object.assign(this.state, state);
this.emit("state-changed");
this.emit("state-changed", { node: this });
this.process();
}
return this;
Expand Down Expand Up @@ -273,7 +273,7 @@
* Processes and renders the Node.
*/
process() {
this.emit("node-updated");
this.emit("node-updated", { node: this });
this.onProcess.forEach((callback) => {
callback(this);
});
Expand Down
4 changes: 2 additions & 2 deletions dist/isotope.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/isotope.min.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions lib/node.js

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

2 changes: 1 addition & 1 deletion lib/node.js.map

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

Loading

0 comments on commit 790c588

Please sign in to comment.