taskengine.js
function closeTask(taskID) {
			taskID = parseInt(taskID, 10);
			var task = this.getTaskByID(taskID);

			if(task) {
				task.open = false;
				console.log('closing:');

				return task;
			}
			else {
				return false;
			}

		}
function closeTask(taskID) {
			taskID = parseInt(taskID, 10);
			var task = this.getTaskByID(taskID);

			if(task) {
				task.open = false;
				console.log('closing:');

				return task;
			}
			else {
				return false;
			}

		}
function closeTask ( taskID ) { taskID = parseInt ( taskID , 10 ) ; var task = this . getTaskByID ( taskID ) ; if ( task ) { task . open = false ; console . log ( 'closing:' ) ; return task ; } else { return false ; } }
Set a task as "done" or "closed"

@return {undefined}
Set a task as done or closed