fixing start-stop-class
This commit is contained in:
parent
84a7d6fea2
commit
80201f22ae
|
@ -224,16 +224,16 @@ function init() {
|
|||
function startPlay() {
|
||||
if (!interval) {
|
||||
interval = setInterval(update, frameDuration);
|
||||
$('#play').removeClass('pause');
|
||||
}
|
||||
$('#play').removeClass('pause');
|
||||
}
|
||||
|
||||
function stopPlay() {
|
||||
if (interval) {
|
||||
clearInterval(interval);
|
||||
interval = false;
|
||||
$('#play').addClass('pause');
|
||||
}
|
||||
$('#play').addClass('pause');
|
||||
}
|
||||
|
||||
function togglePlay() {
|
||||
|
|
Loading…
Reference in New Issue