cms/app-client/app/components/player-component.js
changeset 306 3fccf43160a7
parent 302 973df1349591
child 345 4b66390442fd
--- a/cms/app-client/app/components/player-component.js	Wed Sep 28 15:58:18 2016 +0200
+++ b/cms/app-client/app/components/player-component.js	Wed Sep 28 17:24:02 2016 +0200
@@ -75,16 +75,16 @@
         text.css('text-indent', '0px');
         if(text.width() > jElement.width()) {
             var duration = ( ( text.width() - jElement.width() ) * 8 / 100 ) * 1000;
-            function animate() {
+            var animate = function() {
                 text.delay(4000)
                     .animate({
                         'text-indent': -( text.width() - jElement.width() ) + 'px'
                     }, duration, 'linear', function() {
                         text.stop(true);
-                        text.css('text-indent', '0px')
-                        window.setTimeout(function() { animate() }, 1);
+                        text.css('text-indent', '0px');
+                        window.setTimeout(function() { animate(); }, 1);
                     });
-            }
+            };
             animate();
         }
     },