ソースを参照

AMBARI-4087 Lazy loading doesn't stop even after data is loaded. (atkach)

atkach 11 年 前
コミット
064ac7c1b3
1 ファイル変更3 行追加3 行削除
  1. 3 3
      ambari-web/app/utils/lazy_loading.js

+ 3 - 3
ambari-web/app/utils/lazy_loading.js

@@ -63,11 +63,11 @@ module.exports = {
     var self = this;
     setTimeout(function () {
       destination.pushObjects(chunks[index]);
-      if (chunks.length === (index + 1)) {
+      if (chunks.length === (++index)) {
         context.set('isLoaded', true);
+      } else {
+        self.pushChunk(chunks, index, delay, destination, context);
       }
-      index++;
-      self.pushChunk(chunks, index, delay, destination, context);
     }, delay);
   },