diff --git a/Rakefile b/Rakefile index 8754882d7..3af028560 100644 --- a/Rakefile +++ b/Rakefile @@ -9,7 +9,7 @@ end desc "build the docco documentation" task :doc do - system "docco backbone.js examples/todos/todos.js" + system "docco backbone.js && docco examples/todos/todos.js" end desc "run JavaScriptLint on the source" diff --git a/docs/backbone.html b/docs/backbone.html index 648ede874..5f53fe7c2 100644 --- a/docs/backbone.html +++ b/docs/backbone.html @@ -1,4 +1,4 @@ - backbone.js
Jump To …

backbone.js

(c) 2010 Jeremy Ashkenas, DocumentCloud Inc.
+      backbone.js           

backbone.js

(c) 2010 Jeremy Ashkenas, DocumentCloud Inc.
 Backbone may be freely distributed under the MIT license.
 For all details and documentation:
 http://documentcloud.github.com/backbone
diff --git a/docs/todos.html b/docs/todos.html
index 84afb14e8..892d1b4df 100644
--- a/docs/todos.html
+++ b/docs/todos.html
@@ -1,4 +1,4 @@
-      todos.js           

todos.js

Example Backbone App contributed by Jérôme Gravel-Niquet.

Load the application once the DOM is ready, using jQuery.ready:

$(function(){

Todo Model

Our basic Todo model has content, order, and done attributes.

  window.Todo = Backbone.Model.extend({
+      todos.js           

todos.js

Example Backbone App contributed by Jérôme Gravel-Niquet.

Load the application once the DOM is ready, using jQuery.ready:

$(function(){

Todo Model

Our basic Todo model has content, order, and done attributes.

  window.Todo = Backbone.Model.extend({
 
     EMPTY: "empty todo...",

Ensure that each todo is created with the content field filled in, if nothing has been specified.

    initialize: function() {