Browse files

updating submodule paths

  • Loading branch information...
1 parent 1ee56ad commit 38b71ab098ea1384bab5d436a9f456127fb53386 @addyosmani committed May 29, 2011
Showing with 23 additions and 4 deletions.
  1. +12 −0 .gitmodules
  2. +3 −1 README.md
  3. +1 −0 documentjs
  4. +1 −0 funcunit
  5. +1 −0 jquery
  6. +1 −0 steal
  7. +4 −3 todo/todo/production.js
View
12 .gitmodules
@@ -0,0 +1,12 @@
+[submodule "steal"]
+ path = steal
+ url = git://github.com/jupiterjs/steal.git
+[submodule "jquery"]
+ path = jquery
+ url = git://github.com/jupiterjs/jquerymx.git
+[submodule "funcunit"]
+ path = funcunit
+ url = git://github.com/jupiterjs/funcunit.git
+[submodule "documentjs"]
+ path = documentjs
+ url = git://github.com/jupiterjs/documentjs.git
View
4 README.md
@@ -43,6 +43,8 @@ git submodule add git://github.com/jupiterjs/funcunit.git funcunit
git submodule add git://github.com/jupiterjs/documentjs.git documentjs
</pre>
+Note that as per JupiterIT's original Todo application, jquerymx is actually stored in the directory called jquery in case we decide to sync up any changes made without worrying about path differences.
+
###Cloning
Cloning repositories using GitHub is a fairly straight-forward process and the todo application just requires the following commands to be executed to get you setup:
@@ -69,7 +71,7 @@ todo
test
</pre>
-Note that as per JupiterIT's original Todo application, jquerymx is actually stored in the directory called jquery in case we decide to sync up any changes made without worrying about path differences.
+
###Building
1 documentjs
@@ -0,0 +1 @@
+Subproject commit 2b63153886713524b191afbc711f60d75e220755
1 funcunit
@@ -0,0 +1 @@
+Subproject commit 37719bfdc00bd6c0a035ffed4dc9cea074df9912
1 jquery
@@ -0,0 +1 @@
+Subproject commit 4ca4c069e76b1cf184e2e476f07ae7090e467d58
1 steal
@@ -0,0 +1 @@
+Subproject commit 64f997ca211c813e846c84ed2648701a24ed629f
View
7 todo/todo/production.js
@@ -1,7 +1,8 @@
steal.css("todo").plugins("jquery/model/list","jquery/controller","jquery/view/ejs","jquery/lang/json").then(function(d){d.Model("Todo",{localStore:function(a){var b=this.shortName,c=d.evalJSON(window.localStorage[b]||(window.localStorage[b]="{}"));if(a.call(this,c)!==false)window.localStorage[b]=d.toJSON(c)},findAll:function(a,b){this.localStore(function(c){instances=[];for(var e in c)instances.push(new this(c[e]));b&&b(instances)})},destroyAll:function(a,b){this.localStore(function(c){d.each(a,
-function(){delete c[this]})});b()},destroy:function(a){this.destroyAll([a],successs)},create:function(a,b){this.localStore(function(c){a.id=a.id||parseInt(1E5*Math.random());c[a.id]=a});b({id:a.id})},update:function(a,b,c){this.localStore(function(e){d.extend(e[a],b)});c({})}},{});d.Controller("Todos",{init:function(){this.find(".create").val("")[0].focus();this.options.list.findAll()},"{list} add":function(a,b,c){this.find("#list").append("todosEJS",c);this.updateStats()},".create keyup":function(a,
-b){if(b.keyCode==13){(new Todo({text:a.val(),complete:false})).save(this.callback("created"));a.val("")}},created:function(a){this.options.list.push(a)},".todo-clear click":function(){this.options.list.completed().destroyAll()},".todo .destroy click":function(a){a.closest(".todo").model().destroy()},"{list} remove":function(a,b,c){c.elements(this.element).slideUp(function(){d(this).remove()});this.updateStats()},".todo [name=complete] change":function(a){a.closest(".todo").model().update({complete:a.is(":checked")})},
-".todo dblclick":function(a){var b=d("<input name='text' class='text'/>").val(a.model().text);a.html(b);b[0].focus()},".todo [name=text] focusout":function(a){a.closest(".todo").model().update({text:a.val()})},"{list} update":function(a,b,c){c.elements().html("todoEJS",c);this.updateStats()},updateStats:function(){var a=this.options.list,b=a.completed().length;d("#todo-stats").html("statsEJS",{completed:b,total:a.length,remaining:a.length-b})}});d(function(){d("#todos").todos({list:new Todo.List})})});
+function(){delete c[this]})});b()},destroy:function(a){this.destroyAll([a],successs)},create:function(a,b){this.localStore(function(c){a.id=a.id||parseInt(1E5*Math.random());c[a.id]=a});b({id:a.id})},update:function(a,b,c){this.localStore(function(e){d.extend(e[a],b)});c({})}},{});d.Model.List("Todo.List",{completed:function(){return this.grep(function(a){return a.complete===true})}});d.Controller("Todos",{init:function(){this.find(".create").val("")[0].focus();this.options.list.findAll()},"{list} add":function(a,
+b,c){this.find("#list").append("todosEJS",c);this.updateStats()},".create keyup":function(a,b){if(b.keyCode==13){(new Todo({text:a.val(),complete:false})).save(this.callback("created"));a.val("")}},created:function(a){this.options.list.push(a)},".todo-clear click":function(){this.options.list.completed().destroyAll()},".todo .destroy click":function(a){a.closest(".todo").model().destroy()},"{list} remove":function(a,b,c){c.elements(this.element).slideUp(function(){d(this).remove()});this.updateStats()},
+".todo [name=complete] change":function(a){a.closest(".todo").model().update({complete:a.is(":checked")})},".todo dblclick":function(a){var b=d("<input name='text' class='text'/>").val(a.model().text);a.html(b);b[0].focus()},".todo [name=text] focusout":function(a){a.closest(".todo").model().update({text:a.val()})},"{list} update":function(a,b,c){c.elements().html("todoEJS",c);this.updateStats()},updateStats:function(){var a=this.options.list,b=a.completed().length;d("#todo-stats").html("statsEJS",
+{completed:b,total:a.length,remaining:a.length-b})}});d(function(){d("#todos").todos({list:new Todo.List})})});
;
steal.end();
steal.plugins("jquery/model").then(function(c){var k=function(a){return a[0]&&c.isArray(a[0])?a[0]:a[0]instanceof c.Model.List?c.makeArray(a[0]):c.makeArray(a)},m=0,j=jQuery.expando;c.Class.extend("jQuery.Model.List",{init:function(a){this.length=0;this._data={};this._namespace=".list"+ ++m;this.push.apply(this,c.makeArray(a||[]))},slice:function(){return new this.Class(Array.prototype.slice.apply(this,arguments))},match:function(a,b){return this.grep(function(d){return d[a]==b})},grep:function(a,

0 comments on commit 38b71ab

Please sign in to comment.