This time, I've been doing research over how to stop executing JS app. Unfortunately, I didn't find any matching my needs code... Anyway, I want to write function, that stops my app, after typing close.After that, main app won't recognize child app's commands, unless you load that child app again.Here's my code:
var command = $("input[type='text']").val();
if(command === "close"){
// Close this app
}
FULL VERSION HERE: todo-list on Github