From: Hakim El Hattab Date: Sat, 12 Oct 2013 02:05:43 +0000 (-0400) Subject: better check for arrays in markdown plugin X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=942724238fee5f2fe7480df3a7fbf033dcda6ce9;p=reveal.js.git better check for arrays in markdown plugin --- diff --git a/plugin/markdown/markdown.js b/plugin/markdown/markdown.js index 4cf0cc5..61d6987 100755 --- a/plugin/markdown/markdown.js +++ b/plugin/markdown/markdown.js @@ -171,7 +171,7 @@ // flatten the hierarchical stack, and insert
tags for( var i = 0, len = sectionStack.length; i < len; i++ ) { // vertical - if( sectionStack[i].propertyIsEnumerable( 'length' ) && typeof sectionStack[i].splice === 'function' ) { + if( sectionStack[i] instanceof Array ) { markdownSections += '
'; sectionStack[i].forEach( function( child ) {