Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Y
yafits
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
artemix
yafits
Wiki
Javascript coding guidelines
Changes
Page history
New page
Templates
Clone repository
Update Javascript coding guidelines
authored
3 years ago
by
Moreau Nicolas
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Javascript-coding-guidelines.md
+7
-1
7 additions, 1 deletion
Javascript-coding-guidelines.md
with
7 additions
and
1 deletion
Javascript-coding-guidelines.md
View page @
cb9241e3
...
...
@@ -429,7 +429,11 @@ function sum(a, b) {
```javascript
/**
* Class representing a dot.
* @typedef {Object} Dot
* @extends Point
*
* @property {number} x the x value
* @property {number} y the y value
*/
class Dot extends Point {
/**
...
...
@@ -439,7 +443,9 @@ class Dot extends Point {
* @param {number} width - The width of the dot, in pixels.
*/
constructor(x, y, width) {
// ...
this.x = x;
this.y = y;
...
}
/**
...
...
This diff is collapsed.
Click to expand it.