Permalink
Browse files

updated comments

  • Loading branch information...
1 parent 9effb40 commit 165641b44399c593ff7a81d403d8d15d47c1daea @podefr committed Mar 6, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 architecture-examples/olives/js/app.js
@@ -73,7 +73,7 @@ function (Store, OObject, ModelPlugin, EventPlugin) {
this.getCompleted().sort().reverse().forEach(this.model.del, this.model);
};
- // Calculate the number of takses and update the statistics store
+ // Updates the statistics store that will also update the view
this.updateStats = function () {
var completed = this.getCompleted().length,
nbItems = this.model.getNbItems(),
@@ -88,7 +88,7 @@ function (Store, OObject, ModelPlugin, EventPlugin) {
stats.set("uncompletedWord", uncompleted > 1 ? "items" : "item");
};
- // Returns the number of completed tasks
+ // Returns the completed tasks
this.getCompleted = function () {
var completed = [];
this.model.loop(function (value, idx) {

0 comments on commit 165641b

Please sign in to comment.