0

After reading these two answers (answer1, answer2) I understood to don't add class instances or critical object instances to class definitions. But I wounder where would I use config? Am I right that I would (only) use it, when I need getter and setter for these properties?

Community
  • 1
  • 1
JJR
  • 773
  • 2
  • 13
  • 32

1 Answers1

2

Getters and setters could be one reason, however, Sencha Touch and upcoming Ext 5 use config extensively, in Touch it is even mandatory. So better to get used to it.

Saki
  • 5,827
  • 2
  • 15
  • 15