render (viewCmd, parameter) {
		var self = this;
		var viewCommands = {
			showEntries: function () {
				self.$todoList.innerHTML = self.template.show(parameter);
			},
			removeItem: function () {
				self._removeItem(parameter);
			},
			updateElementCount: function () {
				self.$todoItemCounter.innerHTML = self.template.itemCounter(parameter);
			},
			clearCompletedButton: function () {
				self._clearCompletedButton(parameter.completed, parameter.visible);
			},
			contentBlockVisibility: function () {
				self.$main.style.display = self.$footer.style.display = parameter.visible ? 'block' : 'none';
			},
			toggleAll: function () {
				self.$toggleAll.checked = parameter.checked;
			},
			setFilter: function () {
				self._setFilter(parameter);
			},
			clearNewTodo: function () {
				self.$newTodo.value = '';
			},
			elementComplete: function () {
				self._elementComplete(parameter.id, parameter.completed);
			},
			editItem: function () {
				self._editItem(parameter.id, parameter.title);
			},
			editItemDone: function () {
				self._editItemDone(parameter.id, parameter.title);
			}
		};
	
		viewCommands[viewCmd]();
	}
/**
	 * Renders a view depending on the command we want to execute
	 * @param {string} viewCmd The view command we want to render 
	 * @param {Object} parameter The parameter we want to pass to the command
	 */
Renders a view depending on the command we want to execute
@param {string} viewCmd The view command we want to render
@param {Object} parameter The parameter we want to pass to the command
Renders a view depending on the command we want to execute @param { string } viewCmd The view command we want to render @param { Object } parameter The parameter we want to pass to the command
render (viewCmd, parameter) {
		var self = this;
		var viewCommands = {
			showEntries: function () {
				self.$todoList.innerHTML = self.template.show(parameter);
			},
			removeItem: function () {
				self._removeItem(parameter);
			},
			updateElementCount: function () {
				self.$todoItemCounter.innerHTML = self.template.itemCounter(parameter);
			},
			clearCompletedButton: function () {
				self._clearCompletedButton(parameter.completed, parameter.visible);
			},
			contentBlockVisibility: function () {
				self.$main.style.display = self.$footer.style.display = parameter.visible ? 'block' : 'none';
			},
			toggleAll: function () {
				self.$toggleAll.checked = parameter.checked;
			},
			setFilter: function () {
				self._setFilter(parameter);
			},
			clearNewTodo: function () {
				self.$newTodo.value = '';
			},
			elementComplete: function () {
				self._elementComplete(parameter.id, parameter.completed);
			},
			editItem: function () {
				self._editItem(parameter.id, parameter.title);
			},
			editItemDone: function () {
				self._editItemDone(parameter.id, parameter.title);
			}
		};
		viewCommands[viewCmd]();
	}
render ( viewCmd , parameter ) { var self = this ; var viewCommands = { showEntries : function ( ) { self . $todoList . innerHTML = self . template . show ( parameter ) ; } , removeItem : function ( ) { self . _removeItem ( parameter ) ; } , updateElementCount : function ( ) { self . $todoItemCounter . innerHTML = self . template . itemCounter ( parameter ) ; } , clearCompletedButton : function ( ) { self . _clearCompletedButton ( parameter . completed , parameter . visible ) ; } , contentBlockVisibility : function ( ) { self . $main . style . display = self . $footer . style . display = parameter . visible ? 'block' : 'none' ; } , toggleAll : function ( ) { self . $toggleAll . checked = parameter . checked ; } , setFilter : function ( ) { self . _setFilter ( parameter ) ; } , clearNewTodo : function ( ) { self . $newTodo . value = '' ; } , elementComplete : function ( ) { self . _elementComplete ( parameter . id , parameter . completed ) ; } , editItem : function ( ) { self . _editItem ( parameter . id , parameter . title ) ; } , editItemDone : function ( ) { self . _editItemDone ( parameter . id , parameter . title ) ; } } ; viewCommands [ viewCmd ] ( ) ; }
Renders a view depending on the command we want to execute
 @param {string} viewCmd The view command we want to render
 @param {Object} parameter The parameter we want to pass to the command
Renders a view depending on the command we want to execute @param { string } viewCmd The view command we want to render @param { Object } parameter The parameter we want to pass to the command