});\r
console.log(developerSliceListView);\r
DeveloperApp.mainRegion.show(developerSliceListView);\r
- xos.slicesPlus.fetch();\r
+ xos.slicesPlus.startPolling(); //fetch();\r
});
$(document).ready(function(){
return this.models.map(function(element) { return element.attributes; });
},
+ startPolling: function() {
+ if (!this._polling) {
+ collection=this;
+ setInterval(function() { console.log(collection); collection.fetch(); }, 10000);
+ this._polling=true;
+ this.fetch();
+ }
+ },
+
maybeFetch: function(options){
// Helper function to fetch only if this collection has not been fetched before.
if(this._fetched){