Skip to content

Commit 48ff76c

Browse files
committed
adding a title for static and prototype
1 parent cbbafda commit 48ff76c

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

tags/prototype.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,21 @@ var getParent = require("bit-docs-process-tags/get-parent"),
3939
scope: scope,
4040
docMap: docMap,
4141
name: "prototype",
42-
title: "static"
42+
title: "prototype"
4343
});
4444
// if people are putting @prototype on something that already has a name
4545
if(this.name && docMap[this.name]) {
4646
return ['add',{
4747
type: "prototype",
4848
name: parentAndName.name,
49-
parent: parentAndName.parent
49+
parent: parentAndName.parent,
50+
title: "prototype"
5051
}];
5152
} else {
5253
this.type= "prototype";
5354
this.name= parentAndName.name;
5455
this.parent= parentAndName.parent;
56+
this.title = "prototype";
5557
return ['scope',this];
5658
}
5759

tags/static.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,14 @@ var getParent = require("bit-docs-process-tags/get-parent"),
4545
return ['add',{
4646
type: "static",
4747
name: parentAndName.name,
48-
parent: parentAndName.parent
48+
parent: parentAndName.parent,
49+
title: "static"
4950
}];
5051
} else {
5152
this.type= "static";
5253
this.name= parentAndName.name;
5354
this.parent= parentAndName.parent;
55+
this.title = "static";
5456
return ['scope',this];
5557
}
5658
}

0 commit comments

Comments
 (0)