This is the wrong place to set read only attributes. There is a readOnlyAttributes array on the prototype. You should just push these values on to that.