my model looks like this:
$.Model.extend('Map',
/* @Static */
{
findOne : "/maps/{id}.json",
},
/* @Prototype */
{
init: function(attributes) {
console.log(this);
this.center = new mxn.LatLonPoint(37.75,-122.44);
},
centre: function () {
return this.center;
}
});
and my controller looks like this:
/**
* @tag controllers, home
*/
jQuery.Controller.extend('Map.Controllers.Map',
/* @Static */
{
onDocument: true
},
/* @Prototype */
{
load: function(){
Map.findOne({id:26},this.callback('map_loaded'));
},
map_loaded: function(map){
console.log(map);
}
});
both the console.log(map) and console.log(this) give the same result
here is a screen grab of chrome's console