From 2baa7fa14c7c15cc929b39979606b936fc19be0f Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Tue, 24 Mar 2015 16:43:44 -0400 Subject: [PATCH] Fix bug in the view array service --- static/js/services/angular-view-array.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/static/js/services/angular-view-array.js b/static/js/services/angular-view-array.js index 698ba2f61..2e0e6594a 100644 --- a/static/js/services/angular-view-array.js +++ b/static/js/services/angular-view-array.js @@ -29,7 +29,7 @@ angular.module('quay').factory('AngularViewArray', ['$interval', function($inter this.hasEntries = true; if (this.isVisible) { - this.setVisible(true); + this.startTimer_(); } }; @@ -64,6 +64,8 @@ angular.module('quay').factory('AngularViewArray', ['$interval', function($inter }; _ViewArray.prototype.startTimer_ = function() { + if (this.timerRef_) { return; } + var that = this; this.timerRef_ = $interval(function() { that.showAdditionalEntries_();