I registered an AFRAME component called `mycomponent` which simply points the camera towards a target and changes position on click. To do that the component has two [propriety types](https://aframe.io/docs/0.5.0/core/component.html#property-types) which are `target` and `position`.

I created a [pen](http://codepen.io/deva/pen/QvMeom) where you can see the behaviour.

Now if I call `setAttribute` to update the `position`, it changes position but the `target` propriety is reset to default. Furthermore the entity attribute remains the same. Why is that?