Skip to content

Commit

Permalink
[Release] v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ptkdev committed May 4, 2020
1 parent 23a487f commit edbeac6
Show file tree
Hide file tree
Showing 7 changed files with 91 additions and 15 deletions.
25 changes: 22 additions & 3 deletions dist/lib/en/patreon-box.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,19 @@ class PatreonBox extends HTMLElement {
};

this.options = Object.create(this.options_default);

this.resize_event = function(event) {
this.resize(event);
}.bind(this);
}

/**
* Append web component
* =====================
*
*/
connectedCallback() {
window.addEventListener("resize", this.resize_event);
}

/**
Expand Down Expand Up @@ -125,9 +138,6 @@ class PatreonBox extends HTMLElement {
}).then(function(response) {
this.json = response;
this.build_html();
window.addEventListener("resize", function(event) {
this.resize(event);
}.bind(this));
}.bind(this));
}

Expand All @@ -154,6 +164,15 @@ class PatreonBox extends HTMLElement {
}
}
}

/**
* Remove web component
* =====================
*
*/
disconnectedCallback() {
window.removeEventListener("resize", this.resize_event);
}
}

window.customElements.define("patreon-box", PatreonBox);
Expand Down
2 changes: 1 addition & 1 deletion dist/lib/en/patreon-box.min.js

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

25 changes: 22 additions & 3 deletions dist/lib/it/patreon-box.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,19 @@ class PatreonBox extends HTMLElement {
};

this.options = Object.create(this.options_default);

this.resize_event = function(event) {
this.resize(event);
}.bind(this);
}

/**
* Append web component
* =====================
*
*/
connectedCallback() {
window.addEventListener("resize", this.resize_event);
}

/**
Expand Down Expand Up @@ -125,9 +138,6 @@ class PatreonBox extends HTMLElement {
}).then(function(response) {
this.json = response;
this.build_html();
window.addEventListener("resize", function(event) {
this.resize(event);
}.bind(this));
}.bind(this));
}

Expand All @@ -154,6 +164,15 @@ class PatreonBox extends HTMLElement {
}
}
}

/**
* Remove web component
* =====================
*
*/
disconnectedCallback() {
window.removeEventListener("resize", this.resize_event);
}
}

window.customElements.define("patreon-box", PatreonBox);
Expand Down
2 changes: 1 addition & 1 deletion dist/lib/it/patreon-box.min.js

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

25 changes: 22 additions & 3 deletions dist/lib/pl/patreon-box.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,19 @@ class PatreonBox extends HTMLElement {
};

this.options = Object.create(this.options_default);

this.resize_event = function(event) {
this.resize(event);
}.bind(this);
}

/**
* Append web component
* =====================
*
*/
connectedCallback() {
window.addEventListener("resize", this.resize_event);
}

/**
Expand Down Expand Up @@ -125,9 +138,6 @@ class PatreonBox extends HTMLElement {
}).then(function(response) {
this.json = response;
this.build_html();
window.addEventListener("resize", function(event) {
this.resize(event);
}.bind(this));
}.bind(this));
}

Expand All @@ -154,6 +164,15 @@ class PatreonBox extends HTMLElement {
}
}
}

/**
* Remove web component
* =====================
*
*/
disconnectedCallback() {
window.removeEventListener("resize", this.resize_event);
}
}

window.customElements.define("patreon-box", PatreonBox);
Expand Down
Loading

0 comments on commit edbeac6

Please sign in to comment.