mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-25 17:45:03 +03:00
d16e1a4a4a
This updates our fork to match the latest code in jsdoc v4.0.0-dev. This was done by diffing our forked template against v3.5.5, then reapplying the same changes to the latest default template from v4.0.0-dev. Fixes #1312 (regex backtracking vulnerability in jsdoc template) Change-Id: I6bbac557ad45a443b0faa58be0842f2f30a85848
48 lines
1.1 KiB
Cheetah
48 lines
1.1 KiB
Cheetah
<?js
|
|
var data = obj;
|
|
var self = this;
|
|
|
|
let accessClass = 'access-public'; // default
|
|
if (data.access) {
|
|
accessClass = 'access-' + data.access;
|
|
}
|
|
?>
|
|
<div class="access-container <?js= accessClass ?>">
|
|
|
|
<h4 class="name" id="<?js= id ?>"><?js= data.attribs + name + (data.signature ? data.signature : '') ?></h4>
|
|
|
|
<?js if (data.summary) { ?>
|
|
<p class="summary"><?js= summary ?></p>
|
|
<?js } ?>
|
|
|
|
<?js if (data.description) { ?>
|
|
<div class="description">
|
|
<?js= data.description ?>
|
|
</div>
|
|
<?js } ?>
|
|
|
|
<?js if (data.type && data.type.names) {?>
|
|
<h5>Type:</h5>
|
|
<ul>
|
|
<li>
|
|
<?js= self.partial('type.tmpl', data.type.names) ?>
|
|
</li>
|
|
</ul>
|
|
<?js } ?>
|
|
|
|
<?js= this.partial('details.tmpl', data) ?>
|
|
|
|
<?js if (data.fires && fires.length) { ?>
|
|
<h5>Fires:</h5>
|
|
<ul><?js fires.forEach(function(f) { ?>
|
|
<li><?js= self.linkto(f) ?></li>
|
|
<?js }); ?></ul>
|
|
<?js } ?>
|
|
|
|
<?js if (data.examples && examples.length) { ?>
|
|
<h5>Example<?js= examples.length > 1? 's':'' ?></h5>
|
|
<?js= this.partial('examples.tmpl', examples) ?>
|
|
<?js } ?>
|
|
|
|
</div>
|