Compiled version of $isDirty addition