Permalink
Browse files

revisions to index to cleanup some recent prs, prevent ember and samm…

…y from initializing with a demo first task/todo
  • Loading branch information...
1 parent 85c49e1 commit a02ee13c216c33892ae476e7d4cda502193e86eb @addyosmani addyosmani committed Jan 3, 2012
Showing with 24 additions and 22 deletions.
  1. +15 −15 index.html
  2. +6 −7 todo-example/emberjs/js/app.js
  3. +3 −0 todo-example/sammyjs/app.js
View
30 index.html
@@ -80,25 +80,25 @@
<h5>Live demos</h5>
<ul>
-<li><a href="todo-example/emberjs/index.html">Ember.js</a></li>
-<li><a href="todo-example/javascriptmvc/todo/todo/index.html">JavaScriptMVC</a></li>
-<li><a href="todo-example/spine/index.html">Spine.js</a></li>
-<li><a href="todo-example/backbone/index.html">Backbone.js</a></li>
-<li><a href="todo-example/backbone_require/index.html">Backbone.js + RequireJS</a></li>
-<li><a href="todo-example/sammyjs/index.html">Sammy.js</a></li>
-<li><a href="todo-example/knockback/todos-classic/index.html">Knockback.js (Classic)</a></li>
-<li><a href="todo-example/knockback/todos-extended/index.html">Knockback.js (Extended)</a></li>
-<li><a href="todo-example/knockoutjs/index.html">KnockoutJS (MVVM)</a></li>
-<li><a href="todo-example/yuilibrary/index.html">YUILibrary</a></li>
-<li><a href="todo-example/angularjs/main/index.html">AngularJS</a></li>
-<li><a href="todo-example/angularjs/persistencejs/index.html">Angular + PersistenceJS</a></li>
-<li><a href="todo-example/broke/index.html">Broke.js</a></li>
-<li><a href="todo-example/fidel/index.html">Fidel.js</a></li>
+ <li><a href="todo-example/emberjs/index.html">Ember.js</a></li>
+ <li><a href="todo-example/javascriptmvc/todo/todo/index.html">JavaScriptMVC</a></li>
+ <li><a href="todo-example/spine/index.html">Spine.js</a></li>
+ <li><a href="todo-example/backbone/index.html">Backbone.js</a></li>
+ <li><a href="todo-example/backbone_require/index.html">Backbone.js + RequireJS</a></li>
+ <li><a href="todo-example/sammyjs/index.html">Sammy.js</a></li>
+ <li><a href="todo-example/knockback/todos-classic/index.html">Knockback.js</a></li>
+ <li><a href="todo-example/knockoutjs/index.html">KnockoutJS (MVVM)</a></li>
+ <li><a href="todo-example/yuilibrary/index.html">YUILibrary</a></li>
+ <li><a href="todo-example/angularjs/main/index.html">AngularJS</a></li>
+ <li><a href="todo-example/angularjs/persistencejs/index.html">Angular + PersistenceJS</a></li>
+ <li><a href="todo-example/broke/index.html">Broke.js</a></li>
+ <li><a href="todo-example/fidel/index.html">Fidel.js</a></li>
</ul>
<h5>Contributors</h5>
<ul>
<li><a href="http://twitter.com/addyosmani">Addy Osmani</a></li>
+ <li><a href="https://github.com/boushley">Aaron Boushley</a></li>
<li><a href="http://twitter.com/jeromegn">Jérôme Gravel-Niquet</a></li>
<li><a href="http://twitter.com/justinbmeyer">Justin Meyer</a></li>
<li><a href="http://twitter.com/macmann">Alex MacCaw</a></li>
@@ -126,7 +126,7 @@
<div class="hero-unit">
<h1>TodoMVC</h1>
<p>A common learning application for popular JavaScript MVC frameworks</p>
- <p><a class="btn primary large" href="https://github.com/addyosmani/todomvc/zipball/v0.2">Download Version 0.2</a> &nbsp;
+ <p><a class="btn primary large" href="https://github.com/addyosmani/todomvc/zipball/master">Download (latest)</a> &nbsp;
<a class="btn secondary large" href="http://github.com/addyosmani/todomvc">Follow On GitHub</a></p>
</div>
View
13 todo-example/emberjs/js/app.js
@@ -150,14 +150,13 @@ Todos.TodoStore = (function () {
})();
(function () {
- var items = Todos.TodoStore.findAll();
- if (items.length < 1)
- {
- var todo = Todos.Todo.create({'title': 'First Task'});
- Todos.TodoStore.create(todo);
- items = [todo];
+ var items = Todos.TodoStore.findAll();
+
+ if(items.length > 1){
+ Todos.todosController.set('[]', items);
}
+
- Todos.todosController.set('[]', items);
+
})();
View
3 todo-example/sammyjs/app.js
@@ -117,11 +117,14 @@
var listId = Lists.create({
name: 'My first list'
}).id;
+
+ /*
Todos.create({
name: 'My first todo',
done: false,
listId: listId
});
+ */
localStorage.setItem('initialized', 'yup');
this.redirect('#/list/'+listId);

0 comments on commit a02ee13

Please sign in to comment.