From 0aa901e347be5a43e9f758f382525fd430e41e67 Mon Sep 17 00:00:00 2001 From: Ryan Frederick Date: Mon, 9 Jun 2014 16:29:20 -0700 Subject: [PATCH] Fix whitespace not conforming to code style in some examples. --- javascript/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/javascript/README.md b/javascript/README.md index 4c1b6f8..6e95962 100644 --- a/javascript/README.md +++ b/javascript/README.md @@ -33,17 +33,17 @@ Don't use magic numbers ````javascript // bad: what was 3 again? Text node? Comment? -if(el.nodeType === 3) { ... } +if (el.nodeType === 3) { ... } // bad: The reader doesn't know why we chose 7, and if we change 7 with 8, we'll have to carefully search and replace all occurrences -if($('.blah').length === 7) { ... } +if ($('.blah').length === 7) { ... } // good -if(el.nodeType === Node.TEXT_NODE) { ... } +if (el.nodeType === Node.TEXT_NODE) { ... } // good -if($('.blah').length === defaultRoomCount) { ... } +if ($('.blah').length === defaultRoomCount) { ... } ```` Declare variables with var