2014-10-20 16:56:45 -04:00
|
|
|
<?js
|
|
|
|
var data = obj;
|
|
|
|
var self = this;
|
|
|
|
?>
|
2015-01-28 15:33:44 -05:00
|
|
|
<?js if (data.kind !== 'module') { ?>
|
|
|
|
<?js if (data.kind === 'class' && data.classdesc) { ?>
|
|
|
|
<h2>Constructor</h2>
|
|
|
|
<?js } ?>
|
|
|
|
|
|
|
|
<h4 class="name" id="<?js= id ?>"><?js= data.attribs + (kind === 'class' ? 'new ' : '') +
|
|
|
|
name + (data.signature || '') ?></h4>
|
2014-10-22 10:11:40 -04:00
|
|
|
|
2014-10-20 16:56:45 -04:00
|
|
|
<?js if (data.summary) { ?>
|
|
|
|
<p class="summary"><?js= summary ?></p>
|
|
|
|
<?js } ?>
|
2015-01-28 15:33:44 -05:00
|
|
|
<?js } ?>
|
2014-10-22 10:11:40 -04:00
|
|
|
|
2015-01-28 15:33:44 -05:00
|
|
|
<?js if (data.kind !== 'module' && data.description) { ?>
|
|
|
|
<div class="description">
|
|
|
|
<?js= data.description ?>
|
|
|
|
</div>
|
|
|
|
<?js } ?>
|
2014-10-20 16:56:45 -04:00
|
|
|
|
2015-01-28 15:33:44 -05:00
|
|
|
<?js if (data.augments && data.alias && data.alias.indexOf('module:') === 0) { ?>
|
|
|
|
<h5>Extends:</h5>
|
|
|
|
<?js= self.partial('augments.tmpl', data) ?>
|
|
|
|
<?js } ?>
|
2014-10-22 10:11:40 -04:00
|
|
|
|
2015-01-28 15:33:44 -05:00
|
|
|
<?js if (kind === 'event' && data.type && data.type.names) {?>
|
|
|
|
<h5>Type:</h5>
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<?js= self.partial('type.tmpl', data.type.names) ?>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<?js } ?>
|
2014-10-22 10:11:40 -04:00
|
|
|
|
2015-01-28 15:33:44 -05:00
|
|
|
<?js if (data['this']) { ?>
|
|
|
|
<h5>This:</h5>
|
|
|
|
<ul><li><?js= this.linkto(data['this'], data['this']) ?></li></ul>
|
|
|
|
<?js } ?>
|
2014-10-22 10:11:40 -04:00
|
|
|
|
2015-01-28 15:33:44 -05:00
|
|
|
<?js if (data.params && params.length) { ?>
|
|
|
|
<h5>Parameters:</h5>
|
|
|
|
<?js= this.partial('params.tmpl', params) ?>
|
|
|
|
<?js } ?>
|
2014-10-22 10:11:40 -04:00
|
|
|
|
2015-01-28 15:33:44 -05:00
|
|
|
<?js= this.partial('details.tmpl', data) ?>
|
2014-10-22 10:11:40 -04:00
|
|
|
|
2015-01-28 15:33:44 -05:00
|
|
|
<?js if (data.kind !== 'module' && data.requires && data.requires.length) { ?>
|
|
|
|
<h5>Requires:</h5>
|
|
|
|
<ul><?js data.requires.forEach(function(r) { ?>
|
|
|
|
<li><?js= self.linkto(r) ?></li>
|
|
|
|
<?js }); ?></ul>
|
|
|
|
<?js } ?>
|
2014-10-20 16:56:45 -04:00
|
|
|
|
2015-01-28 15:33:44 -05:00
|
|
|
<?js if (data.fires && fires.length) { ?>
|
|
|
|
<h5>Fires:</h5>
|
|
|
|
<ul><?js fires.forEach(function(f) { ?>
|
|
|
|
<li><?js= self.linkto(f) ?></li>
|
|
|
|
<?js }); ?></ul>
|
|
|
|
<?js } ?>
|
2014-10-20 16:56:45 -04:00
|
|
|
|
2015-01-28 15:33:44 -05:00
|
|
|
<?js if (data.listens && listens.length) { ?>
|
|
|
|
<h5>Listens to Events:</h5>
|
|
|
|
<ul><?js listens.forEach(function(f) { ?>
|
|
|
|
<li><?js= self.linkto(f) ?></li>
|
|
|
|
<?js }); ?></ul>
|
|
|
|
<?js } ?>
|
2014-10-22 10:11:40 -04:00
|
|
|
|
2015-01-28 15:33:44 -05:00
|
|
|
<?js if (data.listeners && listeners.length) { ?>
|
|
|
|
<h5>Listeners of This Event:</h5>
|
|
|
|
<ul><?js listeners.forEach(function(f) { ?>
|
|
|
|
<li><?js= self.linkto(f) ?></li>
|
|
|
|
<?js }); ?></ul>
|
|
|
|
<?js } ?>
|
2014-10-22 10:11:40 -04:00
|
|
|
|
2015-01-28 15:33:44 -05:00
|
|
|
<?js if (data.exceptions && exceptions.length) { ?>
|
|
|
|
<h5>Throws:</h5>
|
|
|
|
<?js if (exceptions.length > 1) { ?><ul><?js
|
|
|
|
exceptions.forEach(function(r) { ?>
|
|
|
|
<li><?js= self.partial('exceptions.tmpl', r) ?></li>
|
|
|
|
<?js });
|
|
|
|
?></ul><?js } else {
|
|
|
|
exceptions.forEach(function(r) { ?>
|
|
|
|
<?js= self.partial('exceptions.tmpl', r) ?>
|
|
|
|
<?js });
|
|
|
|
} } ?>
|
2014-10-22 10:11:40 -04:00
|
|
|
|
2015-01-28 15:33:44 -05:00
|
|
|
<?js if (data.returns && returns.length) { ?>
|
|
|
|
<h5>Returns:</h5>
|
|
|
|
<?js if (returns.length > 1) { ?><ul><?js
|
|
|
|
returns.forEach(function(r) { ?>
|
|
|
|
<li><?js= self.partial('returns.tmpl', r) ?></li>
|
|
|
|
<?js });
|
|
|
|
?></ul><?js } else {
|
|
|
|
returns.forEach(function(r) { ?>
|
|
|
|
<?js= self.partial('returns.tmpl', r) ?>
|
|
|
|
<?js });
|
|
|
|
} } ?>
|
|
|
|
|
|
|
|
<?js if (data.examples && examples.length) { ?>
|
|
|
|
<h5>Example<?js= examples.length > 1? 's':'' ?></h5>
|
|
|
|
<?js= this.partial('examples.tmpl', examples) ?>
|
|
|
|
<?js } ?>
|