mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-08-02 12:27:21 +02:00
Updated Style Guide (markdown)
parent
9342b8dff3
commit
23d19d230b
@ -39,6 +39,10 @@ if (someVar === conditionA) {
|
|||||||
|
|
||||||
_Note: This wasn't always followed, but any new code should do this._
|
_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
|
## 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.
|
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.
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user