Skip to content

Commit 81e15f9

Browse files
committed
improved comment
1 parent d214f18 commit 81e15f9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/framework/mocha/Objects/MOBoxManager.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@
3030
3131
When an Obj-C object is longer referenced externally, we will continue to retain it, until such time as there
3232
are no more JS references to it.
33+
34+
Note that the JS object does not increment the retain count for the MOBox object.
35+
We ensure that there's a retain cycle MOBox -> object -> index -> MOBox, which keeps the box and its object
36+
alive whilst the JS object is alive.
3337
*/
3438

3539
@interface MOBoxManager : NSObject

0 commit comments

Comments
 (0)