flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [34/50] git commit: [flex-asjs] [refs/heads/master] - Removed circular dependency from TodoListSample.
Date Wed, 07 Sep 2016 22:34:09 GMT
Removed circular dependency from TodoListSample.


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/baa15e42
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/baa15e42
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/baa15e42

Branch: refs/heads/master
Commit: baa15e42c96422b76d9e98053768347069a6a078
Parents: 94f5f3a
Author: Peter Ent <pent@apache.org>
Authored: Tue Aug 16 10:46:42 2016 -0400
Committer: Peter Ent <pent@apache.org>
Committed: Tue Aug 16 10:46:42 2016 -0400

----------------------------------------------------------------------
 .../src/sample/todo/controllers/TodoListController.as   | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/baa15e42/examples/flexjs/TodoListSampleApp/src/sample/todo/controllers/TodoListController.as
----------------------------------------------------------------------
diff --git a/examples/flexjs/TodoListSampleApp/src/sample/todo/controllers/TodoListController.as
b/examples/flexjs/TodoListSampleApp/src/sample/todo/controllers/TodoListController.as
index dc39c6d..4465fb3 100644
--- a/examples/flexjs/TodoListSampleApp/src/sample/todo/controllers/TodoListController.as
+++ b/examples/flexjs/TodoListSampleApp/src/sample/todo/controllers/TodoListController.as
@@ -20,16 +20,16 @@ package sample.todo.controllers {
 	import org.apache.flex.core.Application;
 	import org.apache.flex.core.IDocument;
 	import org.apache.flex.events.Event;
-	
+
 	import sample.todo.events.TodoListEvent;
 	import sample.todo.models.TodoListModel;
 
 	public class TodoListController implements IDocument {
-		private var app:TodoListSampleApp;
+		private var app:Application;
 
 		public function TodoListController(app:Application = null) {
 			if (app != null) {
-				app = app as TodoListSampleApp;
+				this.app = app;
 			}
 		}
 
@@ -37,7 +37,7 @@ package sample.todo.controllers {
 		 *
 		 */
 		public function setDocument(document:Object, id:String = null):void {
-			app = document as TodoListSampleApp;
+			app = document as Application;
 			app.addEventListener("viewChanged", viewChangeHandler);
 		}
 
@@ -61,12 +61,12 @@ package sample.todo.controllers {
 			//todoModel.todos.push({title: evt.todo, selected: false});
 			todoModel.addTodo(evt.todo);
 		}
-		
+
 		public function handleItemChecked(event:TodoListEvent):void {
 			var model: TodoListModel = app.model as TodoListModel;
 			model.toggleItemCheck(event.item);
 		}
-		
+
 		public function handleItemRemove(event:TodoListEvent):void {
 			var model: TodoListModel = app.model as TodoListModel;
 			model.removeItem(event.item);


Mime
View raw message