Inline events and also list method events with the class

This commit is contained in:
Andreas Hocevar
2014-05-05 09:35:33 -05:00
parent 52444b1366
commit b1126c9373
5 changed files with 91 additions and 22 deletions

View File

@@ -40,10 +40,10 @@ var self = this;
<?js= this.partial('details.tmpl', data) ?>
<?js if (data.fires && fires.length) { ?>
<?js if (data.kind !== 'class' && data.fires && fires.length) { ?>
<h5>Fires:</h5>
<ul><?js fires.forEach(function(f) { ?>
<?js= self.partial('fires.tmpl', self.linkto(f.replace('event:', '')) ) ?>
<?js= self.partial('fires.tmpl', f) ?>
<?js }); ?></ul>
<?js } ?>