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:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user