Again, seems like a brain fart on my side. Trying to make sample operation by looping through all of the objects in array and changing observable property on those objects:
var sss = vm.tripData();
for (var sh2 in sss) {
sh2.isVisible(false);
}
sss
contains array of objects, I can see it in VS2012 locals - this is what I need. I declared sss
just to see what I'm trying to enumerate. Inside loop first sh2
contains string "0"
Why? I guess it's some javascript thing (I'm from c# background).. I expect sh2 to be my object.
EDIT:
This is what I see in debugger: