Jim
This does not fix your problem - you have dealt with it. But that explains why you see the console output that you see.
When you run console.log (this), you output the object itself and links to console links (pointers, if you want) to internal variables.
When you look at it in the console, while console.log (this) launches the model area, it is empty, but while you look at the logs, the collection has finished loading the models and the internal array variable is updated, and the link to this a variable in the object log shows the current content.
Basically in console.log (this), the internal model variable continues its normal life, and the console shows the current status at the time you look at it, and not at the time you called it. Using console.log (this.models), the array is reset as is, the link is not supported, and all internal values ββare reset one by one.
This behavior is fairly easy to reproduce with a short timeout, see this script. http://jsfiddle.net/bendog/XVkHW/
Ben
source share