Skip to content

Instantly share code, notes, and snippets.

@midorikocak
Created September 17, 2015 10:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save midorikocak/5e00b9debe8a830a940c to your computer and use it in GitHub Desktop.
Save midorikocak/5e00b9debe8a830a940c to your computer and use it in GitHub Desktop.
no signals
public static function main()
{
var appView:AppView = new AppView();
var todos:Todos = getTodos();
var todosView:TodosView = new TodosView();
appView.addToSection(todosView);
var todosController:TodosController = new TodosController(todos,todosView);
appView.appElement.toggleElement.onclick = function(e:EventListener){
todosController.add('mahmut',false);
todosController.updateView();
};
todosController.add('osman',true);
todosController.updateView();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment