Re: [qooxdoo-devel] Question from the twitter tutorial

2015-01-29 Thread voger
Thank you. This makes sense. On 29/01/2015 07:52 πμ, John Spackman wrote: > > It’s for scope, so that the list is accessible outside of the function > that created it; any local variables in the constructor (or any other > method) for tweets.MainWindow are not accessible outside of that > function

Re: [qooxdoo-devel] Question from the twitter tutorial

2015-01-28 Thread John Spackman
It’s for scope, so that the list is accessible outside of the function that created it; any local variables in the constructor (or any other method) for tweets.MainWindow are not accessible outside of that function, so you have to store them as a member value (e.g. this.__list). In the example

[qooxdoo-devel] Question from the twitter tutorial

2015-01-28 Thread voger
I am going through the twitter tutorial located here http://manual.qooxdoo.org/current/pages/desktop/tutorials/tutorial-part-1.html and there the author changes the list declaration from var list = new qx.ui.form.List() to this.__list = new qx.ui.form.List(). What is the reason for this change.