added condition this.attached for updating rendering in computeProperties fixes #358