diff --git a/documentation/coffee/arguments.coffee b/documentation/coffee/arguments.coffee deleted file mode 100644 index ac548c12..00000000 --- a/documentation/coffee/arguments.coffee +++ /dev/null @@ -1,4 +0,0 @@ -backwards: -> - alert arguments.reverse() - -backwards "stairway", "to", "heaven" \ No newline at end of file diff --git a/documentation/index.html.erb b/documentation/index.html.erb index 2c1030d0..3ac1d632 100644 --- a/documentation/index.html.erb +++ b/documentation/index.html.erb @@ -46,7 +46,6 @@ Conditionals, Ternaries, and Conditional Assignment Aliases Splats... - Arguments are Arrays While Loops Comprehensions (Arrays, Objects, and Ranges) Array Slicing and Splicing with Ranges @@ -482,16 +481,6 @@ coffee --print app/scripts/*.coffee > concatenation.js

<%= code_for('splats', true) %> -

- - Arguments are Arrays - If you reference the arguments object directly, it will be converted - into a real Array, making all of the - Array methods - available. -

- <%= code_for('arguments', true) %> -

While Loops diff --git a/documentation/js/arguments.js b/documentation/js/arguments.js deleted file mode 100644 index 87722e6d..00000000 --- a/documentation/js/arguments.js +++ /dev/null @@ -1,8 +0,0 @@ -(function(){ - var backwards; - backwards = function backwards() { - arguments = Array.prototype.slice.call(arguments, 0); - return alert(arguments.reverse()); - }; - backwards("stairway", "to", "heaven"); -})(); diff --git a/documentation/js/interpolation_expression.js b/documentation/js/interpolation_expression.js index 7d41340d..c4e73ce3 100644 --- a/documentation/js/interpolation_expression.js +++ b/documentation/js/interpolation_expression.js @@ -1,4 +1,4 @@ (function(){ var sentence; - sentence = (22 / 7) + " is a decent approximation of π"; + sentence = '' + (22 / 7) + " is a decent approximation of π"; })(); diff --git a/index.html b/index.html index a315faa2..e915ca04 100644 --- a/index.html +++ b/index.html @@ -32,7 +32,6 @@ Conditionals, Ternaries, and Conditional Assignment Aliases Splats... - Arguments are Arrays While Loops Comprehensions (Arrays, Objects, and Ranges) Array Slicing and Splicing with Ranges @@ -81,6 +80,7 @@ alert reverse '.eeffoC yrT' The Rewriter — src/rewriter The Syntax Tree — src/nodes Lexical Scope — src/scope + Helpers & Utility Functions — src/helpers The CoffeeScript Module — src/coffee-script Cake & Cakefiles — src/cake "coffee" Command-Line Utility — src/command @@ -743,32 +743,6 @@ award_medals.apply(this, contenders); alert("Gold: " + gold); alert("Silver: " + silver); alert("The Field: " + the_field); -;'>run
- -

- - Arguments are Arrays - If you reference the arguments object directly, it will be converted - into a real Array, making all of the - Array methods - available. -

-
backwards: ->
-  alert arguments.reverse()
-
-backwards "stairway", "to", "heaven"
-
var backwards;
-backwards = function backwards() {
-  arguments = Array.prototype.slice.call(arguments, 0);
-  return alert(arguments.reverse());
-};
-backwards("stairway", "to", "heaven");
-

@@ -1645,9 +1619,9 @@ quote = "A picture is a fact. -- " + author;

var sentence;
-sentence = (22 / 7) + " is a decent approximation of π";
+sentence = '' + (22 / 7) + " is a decent approximation of π";