PDA

View Full Version : Destroy Cards on side animation



vishalatole
15 Jun 2011, 4:57 AM
how to destroy old card when we call new card so explain with example.

Rhoover
21 Jun 2011, 7:57 AM
Under an MVC architecture, I've managed it like this in the controller.js, with the listener residing w/in an action:



.
.
.
listeners:{
deactivate:function(nameofcard){
nameofcard.destroy();
}
}
.
.
.