From 51239d09dea4959af2a1cb20b9fa4e87b56eca1f Mon Sep 17 00:00:00 2001 From: Scott Baker Date: Tue, 28 Oct 2014 14:59:00 -0700 Subject: [PATCH] fix bug where startPolling would only poll the last collection to have called startPolling --- planetstack/core/xoslib/static/js/xoslib/xos-backbone.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/planetstack/core/xoslib/static/js/xoslib/xos-backbone.js b/planetstack/core/xoslib/static/js/xoslib/xos-backbone.js index 4451328..d2d8f17 100644 --- a/planetstack/core/xoslib/static/js/xoslib/xos-backbone.js +++ b/planetstack/core/xoslib/static/js/xoslib/xos-backbone.js @@ -87,8 +87,8 @@ if (! window.XOSLIB_LOADED ) { }, startPolling: function() { - if (!this._polling) { - collection=this; + if (!this._polling) { + var collection=this; setInterval(function() { collection.fetch(); }, 10000); this._polling=true; this.fetch(); -- 2.43.0