Skip to content

Commit

Permalink
adding destoryCard function to swing-card-component
Browse files Browse the repository at this point in the history
  • Loading branch information
Sparkomatic committed Jun 6, 2017
1 parent 0451f4e commit 891eb26
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/swing-card-component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,10 @@ export class SwingCardComponent {
getCard(): Card {
return this.swingStack.stack.getCard(this.getNativeElement());
}

destroyCard() {
this.swingStack.cards.pop();
var card = this.swingStack.stack.getCard(this.getNativeElement());
this.swingStack.stack.destroyCard(card);
}
}

0 comments on commit 891eb26

Please sign in to comment.