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() {
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() {