fix bug where startPolling would only poll the last collection to have called startPo...
authorScott Baker <smbaker@gmail.com>
Tue, 28 Oct 2014 21:59:00 +0000 (14:59 -0700)
committerScott Baker <smbaker@gmail.com>
Tue, 28 Oct 2014 21:59:00 +0000 (14:59 -0700)
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();