Created
September 17, 2015 10:53
-
-
Save midorikocak/5e00b9debe8a830a940c to your computer and use it in GitHub Desktop.
no signals
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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