better check for arrays in markdown plugin

This commit is contained in:
Hakim El Hattab 2013-10-11 22:05:43 -04:00
parent f8fed1358a
commit 942724238f
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@
// flatten the hierarchical stack, and insert <section data-markdown> 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 += '<section '+ options.attributes +'>';
sectionStack[i].forEach( function( child ) {