Skip to content

Commit

Permalink
Add snapBack function to card
Browse files Browse the repository at this point in the history
  • Loading branch information
keithdmoore committed Nov 6, 2014
1 parent 0e9e501 commit 42dad1b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ionic.tdcards.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,13 @@
swipe: function() {
this.transitionOut();
},

/**
* Snap the card back to its original position
*/
snapBack: function() {
this.onSnapBack(this.x, this.y, this.rotationAngle);

This comment has been minimized.

Copy link
@mlynch

mlynch Jan 5, 2015

Is this onSnapBack fn defined anywhere?

This comment has been minimized.

Copy link
@mlynch

mlynch Jan 5, 2015

nvm, I see it now.

},

isUnderThreshold: function() {
//return true;
Expand Down

0 comments on commit 42dad1b

Please sign in to comment.