I see that 'Reservation.store._data' has all of this info, but '_data'
should be treated as though it's private and inaccessible.
Nevertheless, I can code up a hack and build up the 'reservations'
array like this:
var modelData = Reservation.store._data;
var reservations = new Array();
var i = 0;
var j = 1;
for(var obj in modelData){
reservations[i] = modelData[j];
++i;
++j;
}
this.list(reservations);
I'm not sure why I can't just set 'reservations[i] = obj', but at
least got something working.
Instead of a hack like this, what would be the proper method for
obtaining this 'reservations' array?
Regards,
--
You received this message because you are subscribed to the Google Groups "JavaScriptMVC" group.
To post to this group, send email to javasc...@googlegroups.com.
To unsubscribe from this group, send email to javascriptmv...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/javascriptmvc?hl=en.