Add getCardSize to card-maker

This commit is contained in:
Thomas Lovén 2019-11-09 14:38:00 +01:00
parent 83a9a2ea31
commit 4bcbb48158
2 changed files with 6 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -40,6 +40,11 @@ if(!customElements.get("card-maker")) {
create(config) {
return createCard(config);
}
getCardSize() {
if(this.firstElementChild && this.firstElementChild.getCardSize)
return this.firstElementChild.getCardSize();
return 1;
}
}
customElements.define("card-maker", CardMaker);
}