which is the difference between "return this" and "return false"
I have this code and I'm trying to understand it
var MicuentaView = function (globalService) {
var menu;
var Estatus;
this.initialize = function() {
this.$el = $('<div/>');
this.$el.on('click', '.VeEstatus', this.GoEstatus);
menu = new MenuView();
};
this.render = function(dataToRender) {
this.$el.html(this.template(dataToRender));
$('.MENU', this.$el).html(menu.$el);
console.log('rendereado');
return this;
};
/* events functions */
this.GoEstatus = function(event){
event.preventDefault();
Estatus = new EstatusView();
$('body', this.$el).html(Estatus.$el);
return false;
};
this.initialize();
};
Thanks a lot