Merge pull request #323 from magicrobotmonkey/slideshow_leak

unbind resize event during slideshow
This commit is contained in:
Torkel Ödegaard
2014-04-17 09:52:48 +02:00
+2 -1
View File
@@ -67,6 +67,7 @@ function (angular, _, kbn) {
timerInstance = setInterval(function() {
$rootScope.$apply(function() {
angular.element(window).unbind('resize');
$location.path(dashboards[index % dashboards.length].url);
index++;
});
@@ -82,4 +83,4 @@ function (angular, _, kbn) {
});
});
});