aboutsummaryrefslogtreecommitdiffstats
path: root/docs/src/dom.js
diff options
context:
space:
mode:
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'