yohei0125 3 лет назад
Родитель
Сommit
9b8d69dfe6
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      packages/app/src/server/service/page-operation.ts

+ 3 - 1
packages/app/src/server/service/page-operation.ts

@@ -168,7 +168,9 @@ class PageOperationService {
     clearInterval(timerObj);
     clearInterval(timerObj);
   }
   }
 
 
-  // get all ancestors paths
+  /**
+   * Get ancestor's paths using fromPath and toPath. Merge same paths if any.
+   */
   getAncestorsPathsByFromAndToPath(fromPath: string, toPath: string): string[] {
   getAncestorsPathsByFromAndToPath(fromPath: string, toPath: string): string[] {
     const fromAncestorsPaths = collectAncestorPaths(fromPath);
     const fromAncestorsPaths = collectAncestorPaths(fromPath);
     const toAncestorsPaths = collectAncestorPaths(toPath);
     const toAncestorsPaths = collectAncestorPaths(toPath);