summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-12-20 15:07:34 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2019-12-20 15:07:34 +0000
commit8b61452138ecc511b52cd49be4ee6b8a80390c50 (patch)
tree122b817432c2a0f0e23767bd95791a89b20540c0 /doc
parentf864f8a7aafa45b0e4c04e4312f89da4b1227c0f (diff)
downloadgitlab-ce-8b61452138ecc511b52cd49be4ee6b8a80390c50.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc')
-rw-r--r--doc/development/fe_guide/design_patterns.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/development/fe_guide/design_patterns.md b/doc/development/fe_guide/design_patterns.md
index a7a0f39e2f3..72a7861ffcb 100644
--- a/doc/development/fe_guide/design_patterns.md
+++ b/doc/development/fe_guide/design_patterns.md
@@ -31,11 +31,11 @@ export default new MyThing();
export default class MyThing {
constructor() {
- if (!this.prototype.singleton) {
+ if (!MyThing.prototype.singleton) {
this.init();
- this.prototype.singleton = this;
+ MyThing.prototype.singleton = this;
}
- return this.prototype.singleton;
+ return MyThing.prototype.singleton;
}
init() {