From e16453acbcd95ff434413ccc54de55d1aa2e5cbc Mon Sep 17 00:00:00 2001 From: Jermolene Date: Thu, 30 Apr 2015 16:22:39 +0100 Subject: [PATCH] Docs update --- .../from tw5.com/TiddlyWiki Coding Style Guidelines.tid | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/editions/dev/tiddlers/from tw5.com/TiddlyWiki Coding Style Guidelines.tid b/editions/dev/tiddlers/from tw5.com/TiddlyWiki Coding Style Guidelines.tid index ca2420ad7..0d2da8ece 100644 --- a/editions/dev/tiddlers/from tw5.com/TiddlyWiki Coding Style Guidelines.tid +++ b/editions/dev/tiddlers/from tw5.com/TiddlyWiki Coding Style Guidelines.tid @@ -1,4 +1,4 @@ -modified: 20141016083333808 +modified: 20150430153333808 title: TiddlyWiki Coding Style Guidelines tags: dev @@ -25,9 +25,9 @@ See the following example for layout of basic JavaScript constructs: Multiline comments are used to introduce a block of code such as a function definition */ function demoFunction(param,more) { - // Proper sentence capitalisation for comments - if(condition == "something") { - // No space between "if" and the brackets; always spaces around binary operators + // Proper sentence capitalisation for comments; prefer strict equality checks + if(condition === "something") { + // Always use braces, even when optional; no space between "if" and the brackets; always spaces around binary operators something = somethingElse; myOtherFunction(one,two); // No whitespace within function parameters do {