Commit a02ee13c authored by addyosmani's avatar addyosmani

revisions to index to cleanup some recent prs, prevent ember and sammy from...

revisions to index to cleanup some recent prs, prevent ember and sammy from initializing with a demo first task/todo
parent 85c49e18
...@@ -80,25 +80,25 @@ ...@@ -80,25 +80,25 @@
<h5>Live demos</h5> <h5>Live demos</h5>
<ul> <ul>
<li><a href="todo-example/emberjs/index.html">Ember.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/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/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/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/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/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-classic/index.html">Knockback.js</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/knockoutjs/index.html">KnockoutJS (MVVM)</a></li> <li><a href="todo-example/yuilibrary/index.html">YUILibrary</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/main/index.html">AngularJS</a></li> <li><a href="todo-example/angularjs/persistencejs/index.html">Angular + PersistenceJS</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/broke/index.html">Broke.js</a></li> <li><a href="todo-example/fidel/index.html">Fidel.js</a></li>
<li><a href="todo-example/fidel/index.html">Fidel.js</a></li>
</ul> </ul>
<h5>Contributors</h5> <h5>Contributors</h5>
<ul> <ul>
<li><a href="http://twitter.com/addyosmani">Addy Osmani</a></li> <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/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/justinbmeyer">Justin Meyer</a></li>
<li><a href="http://twitter.com/macmann">Alex MacCaw</a></li> <li><a href="http://twitter.com/macmann">Alex MacCaw</a></li>
...@@ -126,7 +126,7 @@ ...@@ -126,7 +126,7 @@
<div class="hero-unit"> <div class="hero-unit">
<h1>TodoMVC</h1> <h1>TodoMVC</h1>
<p>A common learning application for popular JavaScript MVC frameworks</p> <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> <a class="btn secondary large" href="http://github.com/addyosmani/todomvc">Follow On GitHub</a></p>
</div> </div>
......
...@@ -150,14 +150,13 @@ Todos.TodoStore = (function () { ...@@ -150,14 +150,13 @@ Todos.TodoStore = (function () {
})(); })();
(function () { (function () {
var items = Todos.TodoStore.findAll();
if (items.length < 1) var items = Todos.TodoStore.findAll();
{
var todo = Todos.Todo.create({'title': 'First Task'}); if(items.length > 1){
Todos.TodoStore.create(todo); Todos.todosController.set('[]', items);
items = [todo];
} }
Todos.todosController.set('[]', items);
})(); })();
...@@ -117,11 +117,14 @@ ...@@ -117,11 +117,14 @@
var listId = Lists.create({ var listId = Lists.create({
name: 'My first list' name: 'My first list'
}).id; }).id;
/*
Todos.create({ Todos.create({
name: 'My first todo', name: 'My first todo',
done: false, done: false,
listId: listId listId: listId
}); });
*/
localStorage.setItem('initialized', 'yup'); localStorage.setItem('initialized', 'yup');
this.redirect('#/list/'+listId); this.redirect('#/list/'+listId);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment