Plus simple:
```
this.currentAnim = this.anims[newAnimName];
```