From 23d19d230b18a0574b98ad5b55b88f7c136071f5 Mon Sep 17 00:00:00 2001 From: Yury Delendik Date: Fri, 11 Apr 2014 11:40:48 -0700 Subject: [PATCH] Updated Style Guide (markdown) --- Style-Guide.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Style-Guide.md b/Style-Guide.md index c4b02ef..81a53eb 100644 --- a/Style-Guide.md +++ b/Style-Guide.md @@ -39,6 +39,10 @@ if (someVar === conditionA) { _Note: This wasn't always followed, but any new code should do this._ +## Variables + +Variables must be defined only once within a function scope. Preferably at the top of the function. + ## Classes The standard way of creating classes in PDF.js is the following. Please note that by class we mean an object that is class-like. Also, note the naming of all anonymous functions.