diff --git a/scripts/FlashcardFactory.js b/scripts/FlashcardFactory.js index 19abb50..f62a98c 100644 --- a/scripts/FlashcardFactory.js +++ b/scripts/FlashcardFactory.js @@ -30,7 +30,7 @@ angular.module('flashy.FlashcardFactory', ['ui.router']). return !(typeof Deck.contains(this.id) === 'undefined'); }; Flashcard.prototype.pullUnpull = function() { - if (Deck[this.id]) this.unpull(); + if (this.isInDeck()) this.unpull(); else this.pull(); }; Flashcard.prototype.pull = function () { diff --git a/styles/flashy.css b/styles/flashy.css index 88bc878..734203a 100644 --- a/styles/flashy.css +++ b/styles/flashy.css @@ -48,7 +48,7 @@ } .card.flashy.in-deck { - border: 3px solid rgba(0, 184, 76, 0.4); + /*border: 3px solid rgba(0, 184, 76, 0.4);*/ } .card.flashy {