emit `attr` when an attar is added/changed

very useful for plugins