fix bug where startPolling would only poll the last collection to have called startPo...
[plstackapi.git] / planetstack / core / xoslib / static / js / xoslib / xos-backbone.js
index 4451328..d2d8f17 100644 (file)
@@ -87,8 +87,8 @@ if (! window.XOSLIB_LOADED ) {
         },\r
 \r
         startPolling: function() {\r
-            if (!this._polling) {
-                collection=this;
+            if (!this._polling) {\r
+                var collection=this;
                 setInterval(function() { collection.fetch(); }, 10000);
                 this._polling=true;
                 this.fetch();