Browse Source

Deleting old class comment pointing to AngularJS Todo example

Herbert Vojčík 10 years ago
parent
commit
0d0096245c
2 changed files with 0 additions and 29 deletions
  1. 0 1
      example-counter/js/Trapped-Counter.js
  2. 0 28
      example-counter/st/Trapped-Counter.st

+ 0 - 1
example-counter/js/Trapped-Counter.js

@@ -30,7 +30,6 @@ smalltalk.App);
 
 
 smalltalk.addClass('AppModel', smalltalk.Object, ['value'], 'Trapped-Counter');
-smalltalk.AppModel.comment="// Code from AngularJS Todo example, http://angularjs.org/#todo-js\x0afunction TodoCtrl($scope) {\x0a  $scope.todos = [\x0a    {text:'learn angular', done:true},\x0a    {text:'build an angular app', done:false}];\x0a \x0a  $scope.addTodo = function() {\x0a    $scope.todos.push({text:$scope.todoText, done:false});\x0a    $scope.todoText = '';\x0a  };\x0a \x0a  $scope.remaining = function() {\x0a    var count = 0;\x0a    angular.forEach($scope.todos, function(todo) {\x0a      count += todo.done ? 0 : 1;\x0a    });\x0a    return count;\x0a  };\x0a \x0a  $scope.archive = function() {\x0a    var oldTodos = $scope.todos;\x0a    $scope.todos = [];\x0a    angular.forEach(oldTodos, function(todo) {\x0a      if (!todo.done) $scope.todos.push(todo);\x0a    });\x0a  };\x0a}";
 smalltalk.addMethod(
 smalltalk.method({
 selector: "decrement",

+ 0 - 28
example-counter/st/Trapped-Counter.st

@@ -42,34 +42,6 @@ initialize
 Object subclass: #AppModel
 	instanceVariableNames: 'value'
 	package: 'Trapped-Counter'!
-!AppModel commentStamp!
-// Code from AngularJS Todo example, http://angularjs.org/#todo-js
-function TodoCtrl($scope) {
-  $scope.todos = [
-    {text:'learn angular', done:true},
-    {text:'build an angular app', done:false}];
- 
-  $scope.addTodo = function() {
-    $scope.todos.push({text:$scope.todoText, done:false});
-    $scope.todoText = '';
-  };
- 
-  $scope.remaining = function() {
-    var count = 0;
-    angular.forEach($scope.todos, function(todo) {
-      count += todo.done ? 0 : 1;
-    });
-    return count;
-  };
- 
-  $scope.archive = function() {
-    var oldTodos = $scope.todos;
-    $scope.todos = [];
-    angular.forEach(oldTodos, function(todo) {
-      if (!!todo.done) $scope.todos.push(todo);
-    });
-  };
-}!
 
 !AppModel methodsFor: 'accessing'!