1
0
mirror of https://github.com/2ec0b4/kaamelott-soundboard.git synced 2025-12-08 23:53:24 +00:00

Révise des noms d'attributs pour la gestion de la lecture

This commit is contained in:
Antoine
2016-04-10 22:17:53 +02:00
parent 6ede6e4cbf
commit a25e921055
2 changed files with 14 additions and 9 deletions

View File

@@ -39,15 +39,15 @@ define(
e.preventDefault();
this.stopCurrentPlay();
this.stopCurrentSound();
if( sound ) {
this.currentPlay = sound.play();
this.currentSound = sound.play();
}
},
stopCurrentPlay: function() {
if( this.currentPlay && !this.currentPlay.paused ) {
this.currentPlay.pause();
stopCurrentSound: function() {
if( this.currentSound ) {
this.currentSound.stop();
}
},
serializeData: function () {