ソースを参照

Property 'length' is not a variable.

Lars Kappert 11 年 前
コミット
275efa061a
1 ファイル変更1 行追加1 行削除
  1. 1 1
      plugin/markdown/markdown.js

+ 1 - 1
plugin/markdown/markdown.js

@@ -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].propertyIsEnumerable( 'length' ) && typeof sectionStack[i].splice === 'function' ) {
 				markdownSections += '<section '+ options.attributes +'>';
 
 				sectionStack[i].forEach( function( child ) {