diff --git a/coffeescript/01_introduction.html b/coffeescript/01_introduction.html index a399994..20d19e0 100644 --- a/coffeescript/01_introduction.html +++ b/coffeescript/01_introduction.html @@ -75,6 +75,9 @@

Initial setup

If all this compilation seems like a bit of an inconvenience and bother, that's because it is. We'll be getting onto ways to solve this by automatically compiling CoffeeScript files, but first lets take a look at the language's syntax.

+
« Back to all chapters
+
02. CoffeeScript Syntax »
+ diff --git a/coffeescript/02_syntax.html b/coffeescript/02_syntax.html index 7d4226d..75796b3 100644 --- a/coffeescript/02_syntax.html +++ b/coffeescript/02_syntax.html @@ -411,6 +411,9 @@

Aliases & the Existential Operator

blackKnight.getLegs().kick?()
 
+
« 01. Introduction
+
03. Classes »
+ diff --git a/coffeescript/03_classes.html b/coffeescript/03_classes.html index d3e7bbf..ef93231 100644 --- a/coffeescript/03_classes.html +++ b/coffeescript/03_classes.html @@ -247,6 +247,9 @@

Extending classes

Super simple and elegant!

+
« 02. CoffeeScript Syntax
+
04. Common CoffeeScript idioms »
+ diff --git a/coffeescript/04_idioms.html b/coffeescript/04_idioms.html index 9d9dd3d..7784474 100644 --- a/coffeescript/04_idioms.html +++ b/coffeescript/04_idioms.html @@ -280,6 +280,9 @@

Private variables

In other words, classToType is completely private, and can never again be referenced outside the executing anonymous function. This pattern is a great way of encapsulating scope and hiding variables.

+
« 03. Classes
+
05. Automating CoffeeScript compilation »
+ diff --git a/coffeescript/05_compiling.html b/coffeescript/05_compiling.html index d1206b7..2c7c5c7 100644 --- a/coffeescript/05_compiling.html +++ b/coffeescript/05_compiling.html @@ -127,6 +127,9 @@

Server side support

Both Ruby and Python pipe out to Node and the CoffeeScript lib behind the scenes when compiling CoffeeScript, so you'll need to have those installed during development. If you're using Node directly as a backend for your site, CoffeeScript integration is even simpler and you can use it for both the backend and frontend code. We're going to talk more about this in the next chapter, using Stitch to serve all our client-side CoffeeScript.

+
« 04. Common CoffeeScript idioms
+
06. Creating Applications »
+ diff --git a/coffeescript/06_applications.html b/coffeescript/06_applications.html index 5e25c85..2d33fb1 100644 --- a/coffeescript/06_applications.html +++ b/coffeescript/06_applications.html @@ -291,6 +291,9 @@

Additional libraries

You can find a full list of CoffeeScript web framework plugins, on the project's wiki.

+
« 05. Automating CoffeeScript compilation
+
07. The Bad Parts »
+ diff --git a/coffeescript/07_the_bad_parts.html b/coffeescript/07_the_bad_parts.html index 7084506..789d693 100644 --- a/coffeescript/07_the_bad_parts.html +++ b/coffeescript/07_the_bad_parts.html @@ -380,7 +380,7 @@

Using delete

aVar = 1
 delete aVar
-typeof Var # "integer"
+typeof aVar # "integer"
 

It's rather peculiar behavior, but there you have it. If you want to remove a reference to a variable, just assign it to null instead.

@@ -503,6 +503,9 @@

JavaScript Lint

index.coffee: 0 error(s), 0 warning(s) +
« 06. Creating Applications
+
The end. To all chapters »
+ diff --git a/coffeescript/site/site.css b/coffeescript/site/site.css index fbb023a..21ca934 100644 --- a/coffeescript/site/site.css +++ b/coffeescript/site/site.css @@ -96,6 +96,16 @@ header h1 a { margin: 10px 5px 0 0; } +.previous_chapter { + float: left; + margin: 10px 5px 0 0; +} + +.next_chapter { + float: right; + margin: 10px 5px 0 0; +} + #content .wrap { width: 625px; position: relative;