aboutsummaryrefslogtreecommitdiffstats
path: root/docs/src/ngdoc.js
diff options
context:
space:
mode:
authorMisko Hevery2011-08-31 12:21:27 -0700
committerIgor Minar2011-08-31 14:34:56 -0700
commit3c80cf3df607464ea95acc6595c521d8fd32de2c (patch)
treed6b67896801911453f95cba85156b8e9b6951206 /docs/src/ngdoc.js
parentad3cc16eef0a13844e6e05abcb18c46a370f0814 (diff)
downloadangular.js-3c80cf3df607464ea95acc6595c521d8fd32de2c.tar.bz2
style(docs): improve the formatting of events in docs
Diffstat (limited to 'docs/src/ngdoc.js')
-rw-r--r--docs/src/ngdoc.js13
1 files changed, 8 insertions, 5 deletions
diff --git a/docs/src/ngdoc.js b/docs/src/ngdoc.js
index a9abe7a6..e47848d0 100644
--- a/docs/src/ngdoc.js
+++ b/docs/src/ngdoc.js
@@ -221,7 +221,7 @@ Doc.prototype = {
} else if(atName == 'eventType') {
var match = text.match(/^([^\s]*)\s+on\s+([\S\s]*)/);
self.type = match[1];
- self.source = match[2];
+ self.target = match[2];
} else {
self[atName] = text;
}
@@ -531,11 +531,14 @@ Doc.prototype = {
});
});
dom.h('Events', this.events, function(event){
- var signature = (event.param || []).map(property('name'));
- dom.h(event.type + ' ' +
- event.shortName + '(' + signature.join(', ') + ') on ' +
- event.source, event, function(){
+ dom.h(event.shortName, event, function(){
dom.html(event.description);
+ dom.tag('div', {class:'inline'}, function(){
+ dom.h('Type:', event.type);
+ });
+ dom.tag('div', {class:'inline'}, function(){
+ dom.h('Target:', event.target);
+ });
event.html_usage_parameters(dom);
self.html_usage_this(dom);