Commit b06f64922ca11ad201840f141efa58a53d01664f
1 parent
1d616f4a4d
Exists in
master
and in
1 other branch
fix pullUnpull for new flashcard magics
Showing 2 changed files with 2 additions and 2 deletions Side-by-side Diff
scripts/FlashcardFactory.js
View file @
b06f649
... | ... | @@ -30,7 +30,7 @@ |
30 | 30 | return !(typeof Deck.contains(this.id) === 'undefined'); |
31 | 31 | }; |
32 | 32 | Flashcard.prototype.pullUnpull = function() { |
33 | - if (Deck[this.id]) this.unpull(); | |
33 | + if (this.isInDeck()) this.unpull(); | |
34 | 34 | else this.pull(); |
35 | 35 | }; |
36 | 36 | Flashcard.prototype.pull = function () { |