Permalink
Browse files

Fix the problem with restarting playback in the stack demo.

  • Loading branch information...
1 parent 5d615de commit f7eeaf14f687199eceee8e456c6b236628ccd936 Adam Harvey committed Apr 23, 2010
Showing with 3 additions and 1 deletion.
  1. +3 −1 test/Stack.js
View
@@ -210,7 +210,9 @@ var onPlay = function () {
}
else {
play.textContent = "Play";
- player = createPlayer();
+ if (!player) {
+ player = createPlayer();
+ }
source.pause();
source.position = 0;
}

0 comments on commit f7eeaf1

Please sign in to comment.