aboutsummaryrefslogtreecommitdiffstats
path: root/docs/src/dom.js
diff options
context:
space:
mode:
authorMisko Hevery2011-01-31 16:21:29 -0800
committerMisko Hevery2011-02-01 10:00:09 -0800
commitba6b68b6ae2bb2400a75ca2834fee47bfd60f1c6 (patch)
tree94f08ee16f270dd5f6238fb77064c91c624df931 /docs/src/dom.js
parented768ebc53ef6746ca83d81892c22d2e9c3afeef (diff)
downloadangular.js-ba6b68b6ae2bb2400a75ca2834fee47bfd60f1c6.tar.bz2
changed the documentation @example to use <doc:example>
Diffstat (limited to 'docs/src/dom.js')
-rw-r--r--docs/src/dom.js19
1 files changed, 1 insertions, 18 deletions
diff --git a/docs/src/dom.js b/docs/src/dom.js
index 7708cbc9..4210d687 100644
--- a/docs/src/dom.js
+++ b/docs/src/dom.js
@@ -74,25 +74,8 @@ DOM.prototype = {
});
},
- example: function(description, source, scenario) {
- if (description || source || scenario) {
- this.h('Example', function(){
- if (description)
- this.html(description);
- if (scenario === false) {
- this.code(source);
- } else {
- this.tag('doc:example', function(){
- if (source) this.tag('doc:source', source);
- if (scenario) this.tag('doc:scenario', scenario);
- });
- }
- });
- }
- },
-
h: function(heading, content, fn){
- if (content==undefined || content && content.legth == 0) return;
+ if (content==undefined || (content instanceof Array && content.length == 0)) return;
this.headingDepth++;
this.tag('h' + this.headingDepth, heading);
var className = typeof heading == 'string'