Quote:
|
Originally Posted by Skrobo2
This is a little off topic, but we were having dissucsion about that on RC a while back. I'm no expert on GS2, so I have a questopn for you Okie. Is it wrong to do like this.blah = {"blah","blah","blah","blah"};? NaS said the proper way to do it was like you stated "this.mykewlarray = "\"One\",\"Two\"";".
|
NO NO NO NO NO!
You should not be initializing arrays using this.baz = "\"foo\",\"bar\"";.
You should use the this.baz = {foo, bar}; method, not least for cleanliness and editability/comprehension reasons.