Browse Source

Fix a case of endless recursion

j8
Lyubomir Marinov 8 years ago
parent
commit
91487ffc94
1 changed files with 5 additions and 2 deletions
  1. 5
    2
      react/features/base/react/RouteRegistry.js

+ 5
- 2
react/features/base/react/RouteRegistry.js View File

43
             return !a;
43
             return !a;
44
         }
44
         }
45
 
45
 
46
+        const aKeys = Object.keys(a);
47
+        const bKeys = Object.keys(b);
48
+
46
         return (
49
         return (
47
-            Object.keys(a).every(key => a[key] === b[key])
48
-                && /* symmetric */ this.areRoutesEqual(b, a));
50
+            aKeys.length === bKeys.length /* symmetric */
51
+                && aKeys.every(key => a[key] === b[key]));
49
     }
52
     }
50
 
53
 
51
     /**
54
     /**

Loading…
Cancel
Save