Fix bug in the view array service

This commit is contained in:
Joseph Schorr 2015-03-24 16:43:44 -04:00
parent d9c3c6689a
commit 2baa7fa14c

View file

@ -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_();