stahlman
27 Oct 2011, 3:16 AM
In previous versions, I sometimes accessed config like this:
this.someConfigProperty
This no longer works. In 4.1, it appears that any of the following would work...
1. this.getSomeConfigProperty()
2. this.config.someConfigProperty
3. this._someConfigProperty
...but I don't want to rely upon undocumented behavior (again). Method #1 is the only one I see mentioned explicitly in the docs, but for config used within methods called many times, I prefer a non-method access mechanism. Is #2 also safe?
this.someConfigProperty
This no longer works. In 4.1, it appears that any of the following would work...
1. this.getSomeConfigProperty()
2. this.config.someConfigProperty
3. this._someConfigProperty
...but I don't want to rely upon undocumented behavior (again). Method #1 is the only one I see mentioned explicitly in the docs, but for config used within methods called many times, I prefer a non-method access mechanism. Is #2 also safe?