display everything a method listens to in the template

This commit is contained in:
mathematicalcoffee 2013-02-26 16:42:05 +10:00
parent 66d4b0623a
commit 01c13bd425

View File

@ -44,6 +44,13 @@ var self = this;
<?js= self.partial('fires.tmpl', self.linkto(f) ) ?> <?js= self.partial('fires.tmpl', self.linkto(f) ) ?>
<?js }); ?></ul> <?js }); ?></ul>
<?js } ?> <?js } ?>
<?js if (data.listens && listens.length) { ?>
<h5>Listens to events:</h5>
<ul><?js listens.forEach(function(f) { ?>
<?js= self.partial('fires.tmpl', self.linkto(f) ) ?>
<?js }); ?></ul>
<?js } ?>
<?js if (data.exceptions && exceptions.length) { ?> <?js if (data.exceptions && exceptions.length) { ?>
<h5>Throws:</h5> <h5>Throws:</h5>