isundil 9 anos atrás
pai
commit
de65aede68
2 arquivos alterados com 3 adições e 0 exclusões
  1. 1 0
      js/polling.js
  2. 2 0
      src/GridManager.js

+ 1 - 0
js/polling.js

@@ -60,6 +60,7 @@ function pollNow() {
         pollNow.polling = true;
         doGet("/api/poll?grid=" +GRID_PUBLIC_ID +"&v=" +KNOWN_VERSION, function(status, resp) {
             if (pollNow.stopped !== true) {
+                //TODO manage network error
                 pollNow.polling = false;
                 if (resp) {
                     updateOnPollResult(resp);

+ 2 - 0
src/GridManager.js

@@ -46,6 +46,7 @@ function getVar(url, cb) {
     });
 }
 
+// TODO multi-sources grids
 module.exports.listGrids = function(cb) {
     if (DEBUG_QUERY) {
         console.warn("[gridManager] debug skip list grids");
@@ -76,6 +77,7 @@ module.exports.listGrids = function(cb) {
     }
 };
 
+// TODO multi-sources grids
 module.exports.createGrid = function(gridPublicId, gridId, cb) {
     console.log("[gridManager] get grid " +gridId);
     getVar(util.format(RCIGETGRID, gridId), (data) => {