Commit ef54bb1b by Torkel Ödegaard

Merge pull request #323 from magicrobotmonkey/slideshow_leak

unbind resize event during slideshow
parents 8ca589cd ada56ea8
...@@ -67,6 +67,7 @@ function (angular, _, kbn) { ...@@ -67,6 +67,7 @@ function (angular, _, kbn) {
timerInstance = setInterval(function() { timerInstance = setInterval(function() {
$rootScope.$apply(function() { $rootScope.$apply(function() {
angular.element(window).unbind('resize');
$location.path(dashboards[index % dashboards.length].url); $location.path(dashboards[index % dashboards.length].url);
index++; index++;
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment