Fixed conflict between two variable names

This commit is contained in:
sork 2011-05-23 15:39:52 +02:00
Родитель 2db2b65c68
Коммит 1cfde4bfe1
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -4,19 +4,19 @@ $(document).ready(function() {
spark = new Section('spark', '#spark-content', 'spark-1'), spark = new Section('spark', '#spark-content', 'spark-1'),
firefox = new Section('firefox', '#firefox-content', 'layer-1'), firefox = new Section('firefox', '#firefox-content', 'layer-1'),
currentSection, currentSection,
lights, spark; lights, sparkAnimation;
TWEEN.start(); TWEEN.start();
home.onHide(function() { home.onHide(function() {
lights.pause(); lights.pause();
spark.pause(); sparkAnimation.pause();
}); });
home.onShow(function() { home.onShow(function() {
setTimeout(function() { setTimeout(function() {
lights.play(); lights.play();
spark.play(); sparkAnimation.play();
}, 400); }, 400);
}); });
@ -178,5 +178,5 @@ $(document).ready(function() {
initNewsletterForm(); initNewsletterForm();
lights = new Lights('particles', '/media/img/particle.png', 13, 380, 350); lights = new Lights('particles', '/media/img/particle.png', 13, 380, 350);
spark = new Spark('spark', 200, 300); sparkAnimation = new Spark('spark', 200, 300);
}); });