Yes _markDirty is fine. I see you used that in your code in any case.