fix an issue where the isDirty flag was not set to a Boolean value
fix an issue where the isDirty flag was not set to a Boolean value

looks like using bitwise operations ends up with a numerical value

melonjs/melonJS,melonjs/melonJS