Skip to content

Commit b96fb6a

Browse files
committed
Merge pull request openlayers#2345 from tschaub/no-static
Remove static and other attributes from the docs.
2 parents 1cbedad + aa4dbde commit b96fb6a

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

apidoc/template/publish.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,6 @@ function addSignatureTypes(f) {
7979
f.signature = (f.signature || '') + '<span class="type-signature">'+(types.length? ' :'+types.join('|') : '')+' </span>';
8080
}
8181

82-
function addAttribs(f) {
83-
var attribs = helper.getAttribs(f);
84-
85-
if (attribs.length) {
86-
f.attribs = '<span class="type-signature ' + (attribs[0] === 'static' ? 'static' : '') + '">' + htmlsafe(attribs.length ? attribs.join(',') : '') + ' </span>';
87-
}
88-
}
89-
9082
function shortenPaths(files, commonPrefix) {
9183
// always use forward slashes
9284
var regexp = new RegExp('\\\\', 'g');
@@ -404,7 +396,6 @@ exports.publish = function(taffyData, opts, tutorials) {
404396
if ( needsSignature(doclet) ) {
405397
addSignatureParams(doclet);
406398
addSignatureReturns(doclet);
407-
addAttribs(doclet);
408399
}
409400
});
410401

@@ -414,12 +405,10 @@ exports.publish = function(taffyData, opts, tutorials) {
414405

415406
if (doclet.kind === 'member') {
416407
addSignatureTypes(doclet);
417-
addAttribs(doclet);
418408
}
419409

420410
if (doclet.kind === 'constant') {
421411
addSignatureTypes(doclet);
422-
addAttribs(doclet);
423412
doclet.kind = 'member';
424413
}
425414
});

apidoc/template/tmpl/navigation.tmpl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ var self = this;
1515
<?js if (item.type === 'namespace' &&
1616
(item.members.length + item.typedefs.length + item.methods.length +
1717
item.events.length > 0)) { ?>
18-
<span class="static">static</span>
1918
<?js } ?>
2019
</span>
2120
<ul class="members itemMembers">

0 commit comments

Comments
 (0)