emit `attar` when an attar is added/changed
add `attr` event to docs
Merge pull request #28 from ramitos/master

emit `attr` when an attribute is added/changed