code: function(name, data) {
  
  			switch(name) {
  				case 'todoadded':
  				case 'todoremoved':
  					this.renderList();
  					this.updateSelectAllCheckbox();
  					break;
  
  				case 'todostatuschange':
  					this.updateSelectAllCheckbox();
  					break;
  
  				case 'statechanged':
  					setFilterByUrl(data.url);
  					this.renderList();
  					break;
  			}
  
  		}
docs: Handles all messages received for the module.
  @param {string} name The name of the message received.
  @param {*} [data] Additional data sent along with the message.
  @returns {void}