From 942724238fee5f2fe7480df3a7fbf033dcda6ce9 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Fri, 11 Oct 2013 22:05:43 -0400 Subject: [PATCH] better check for arrays in markdown plugin --- plugin/markdown/markdown.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/markdown/markdown.js b/plugin/markdown/markdown.js index 4cf0cc58..61d69879 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 ) {