Every time this line runs (inside the loop), you are instantiating a new class, causing the memory leak. That’s not the right way to use Parse.Object.extend
. Use it only once for each class in the beginning of the file, or use new Parse.Object('ClassName')
, new Parse.Query('ClassName')
without using the Parse.Object.extend
.
1 Like