We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cd83ea commit 4177e0dCopy full SHA for 4177e0d
libs/backendless.js
@@ -985,9 +985,14 @@
985
},
986
987
_formCircDeps: function(obj) {
988
- var circDepsIDs = {},
989
- result = new obj.constructor(),
990
- _formCircDepsHelper = function(obj, result) {
+ var result = new obj.constructor();
+ var circDepsIDs = {};
+ var iteratedObjects = []
991
+
992
+ var _formCircDepsHelper = function(obj, result) {
993
+ if (iteratedObjects.indexOf(obj) === -1) {
994
+ iteratedObjects.push(obj)
995
996
if (obj.hasOwnProperty("__subID")) {
997
circDepsIDs[obj["__subID"]] = result;
998
delete obj["__subID"];
@@ -1007,9 +1012,11 @@
1007
1012
}
1008
1013
1009
1014
1010
- };
1015
+ }
1016
+ };
1011
1017
1018
_formCircDepsHelper(obj, result);
1019
1020
return result;
1021
1022
0 commit comments