Closed mar-h4 closed 3 years ago
marray-utils.ts
MArray.track
remove
insert
tu.insert
tu.remove
update
MArray.pop
Task: EDI-1607
Other than the minor nit, looks good
marray-utils.ts
file;MArray.track
method that adds onCreate and onRemove listeners to the MArray class, and returns functions to remove the listeners;remove
andinsert
methods that wrap the direct tree modification methods and run the onCreate and onRemove handlers accordingly;tu.insert
andtu.remove
usages with the newly created ones in all MArray methods that modify the string, as well as in theupdate
method;MArray.pop
implementation to handle empty array case (should return undefined by spec).Task: EDI-1607