diff --git a/Style-Guide.md b/Style-Guide.md new file mode 100644 index 0000000..2ae5661 --- /dev/null +++ b/Style-Guide.md @@ -0,0 +1,16 @@ +# Style Guide +## 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. +
+var Name = (function NameConstructor() {
+  function Name(name) {
+    this.name = name;
+  }
+
+  Name.prototype = {
+  };
+  ...
+
+  return Name;
+})();
+
\ No newline at end of file