From ba6b68b6ae2bb2400a75ca2834fee47bfd60f1c6 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Mon, 31 Jan 2011 16:21:29 -0800 Subject: changed the documentation @example to use --- docs/src/dom.js | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'docs/src/dom.js') 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' -- cgit v1.2.3