diff options
| author | Misko Hevery | 2011-01-19 15:42:11 -0800 | 
|---|---|---|
| committer | Misko Hevery | 2011-01-24 14:23:51 -0800 | 
| commit | c2f2587a79aeb77aad66f081cf924a79348a698e (patch) | |
| tree | 8f5aa4cc6e7189befb834388b2102d1eda88a975 /docs/src/ngdoc.js | |
| parent | 5d0d34ae72a9ca47f1b2dabda60711ad16ee9313 (diff) | |
| download | angular.js-c2f2587a79aeb77aad66f081cf924a79348a698e.tar.bz2 | |
fixed example rendering, add tests for it.
Diffstat (limited to 'docs/src/ngdoc.js')
| -rw-r--r-- | docs/src/ngdoc.js | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/docs/src/ngdoc.js b/docs/src/ngdoc.js index 8481f7dc..daa44fef 100644 --- a/docs/src/ngdoc.js +++ b/docs/src/ngdoc.js @@ -76,6 +76,7 @@ Doc.prototype = {      this.description = markdown(this.description);      this['this'] = markdown(this['this']);      this.exampleDescription = markdown(this.exampleDescription || this.exampleDesc); +    return this;      function flush(){        if (atName) { @@ -144,13 +145,13 @@ Doc.prototype = {          dom.h(method.shortName + '(' + signature.join(', ') + ')', method, function(){            dom.html(method.description);            method.html_usage_parameters(dom); -          dom.example(method.example, false); +          dom.example(method.exampleDescription, method.example, false);          });        });        dom.h('Properties', self.properties, function(property){          dom.h(property.name, function(){           dom.text(property.description); -         dom.example(property.example, false); +         dom.example(property.exampleDescription, property.example, false);          });        }); | 
