Fix faulty dom:attach / dom:detach behavior
Merge pull request #63 from dabohealth/bugs/faulty-dom-attach-detach

Fix faulty dom:attach / dom:detach behavior