fixing start-stop-class

This commit is contained in:
Micho 2013-05-23 20:44:59 +02:00
parent 84a7d6fea2
commit 80201f22ae
1 changed files with 2 additions and 2 deletions

View File

@ -224,16 +224,16 @@ function init() {
function startPlay() { function startPlay() {
if (!interval) { if (!interval) {
interval = setInterval(update, frameDuration); interval = setInterval(update, frameDuration);
$('#play').removeClass('pause');
} }
$('#play').removeClass('pause');
} }
function stopPlay() { function stopPlay() {
if (interval) { if (interval) {
clearInterval(interval); clearInterval(interval);
interval = false; interval = false;
$('#play').addClass('pause');
} }
$('#play').addClass('pause');
} }
function togglePlay() { function togglePlay() {