From 15b64addbffa9285445d9ca05834267401a7c8f1 Mon Sep 17 00:00:00 2001 From: charlierudolph Date: Mon, 17 Mar 2014 16:15:31 -0700 Subject: [PATCH] Fix errors on index Extra quotations resulted in subtracting two strings and then a javascript syntax error --- documentation/index.html.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/documentation/index.html.js b/documentation/index.html.js index e7f50c0c..d765dbb0 100644 --- a/documentation/index.html.js +++ b/documentation/index.html.js @@ -778,7 +778,7 @@ Expressions Destructuring assignment can be used with any depth of array and object nesting, to help pull out deeply nested properties.

- <%= codeFor('object_extraction', '"name + "-" + street"') %> + <%= codeFor('object_extraction', 'name + "-" + street') %>

Destructuring assignment can even be combined with splats.

@@ -786,7 +786,7 @@ Expressions

Expansion can be used to retrieve elements from the end of an array without having to assign the rest of its values. It works in function parameter lists as well.

- <%= codeFor('expansion', '"first + " " + last"') %> + <%= codeFor('expansion', 'first + " " + last') %>

Destructuring assignment is also useful when combined with class constructors to assign properties to your instance from an options object passed to the constructor.