From 866f2a80fd2dcb949b58d1fb9d126c54bb5f4f1d Mon Sep 17 00:00:00 2001 From: kkujala Date: Thu, 5 Apr 2012 11:24:00 -0700 Subject: [PATCH] Updated Style Guide (markdown) --- Style-Guide.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Style-Guide.md b/Style-Guide.md index 4262aa0..85e460f 100644 --- a/Style-Guide.md +++ b/Style-Guide.md @@ -35,17 +35,17 @@ if (someVar) 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. ```javascript -var Name = (function NameClosure() { - function Name(name) { - this.name = name; +var ClassName = (function ClassNameClosure() { + function ClassName(...) { + ... } - Name.prototype = { - functionName: function Name_FunctionName(argOne, argTwo) { + ClassName.prototype = { + functionName: function ClassName_functionName(...) { ... } }; - return Name; + return ClassName; })(); ``` \ No newline at end of file