tentone 5 years ago
parent
commit
9aa8fbdfaf
1 changed files with 12 additions and 3 deletions
  1. 12 3
      README.md

+ 12 - 3
README.md

@@ -186,13 +186,13 @@ class CustomObject extends Escher.Node
 	serialize(recursive)
 	{
 		var data = super.serialize(recursive);
-        data.something = this.something;
-        return data;
+		data.something = this.something;
+		return data;
 	}
     
 	parse(data, root)
 	{
-        super.parse(data, root);
+		super.parse(data, root);
 		this.something = data.something;
 	}
 }
@@ -212,6 +212,15 @@ constructor()
 }
 ```
 
+- Sometimes it might be necessary to access references to other objects in the group. It is recommended to store these relations by their UUID and rebuilding from the root object.
+
+```javascript
+parse(data, root)
+{
+	this.someObject = root.getChildByUUID(data.someObject);
+}
+```
+
 
 
 ### Pointer events