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

@ -45,6 +45,13 @@ var self = this;
<?js }); ?></ul>
<?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) { ?>
<h5>Throws:</h5>
<?js if (exceptions.length > 1) { ?><ul><?js