Property 'length' is not a variable.
authorLars Kappert <lars@webpro.nl>
Sun, 29 Sep 2013 09:34:17 +0000 (11:34 +0200)
committerLars Kappert <lars@webpro.nl>
Sun, 29 Sep 2013 09:34:17 +0000 (11:34 +0200)
plugin/markdown/markdown.js

index 42c847f088e2f40657f2828ae86bc27172368191..4cf0cc583628a1ce9dc54a7d3e948e032cbb6bda 100755 (executable)
                // 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].propertyIsEnumerable( 'length' ) && typeof sectionStack[i].splice === 'function' ) {
                                markdownSections += '<section '+ options.attributes +'>';
 
                                sectionStack[i].forEach( function( child ) {