From 7e629936e576ea3205d391070d10bbc26ed8e120 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Sat, 24 Aug 2013 11:06:52 -0400 Subject: [PATCH] always use 'i' as iterator --- plugin/markdown/markdown.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/plugin/markdown/markdown.js b/plugin/markdown/markdown.js index 552b32c..31d22f1 100755 --- a/plugin/markdown/markdown.js +++ b/plugin/markdown/markdown.js @@ -157,15 +157,15 @@ var markdownSections = ''; // flatten the hierarchical stack, and insert
tags - for( var k = 0, klen = sectionStack.length; k < klen; k++ ) { + for( var i = 0, len = sectionStack.length; i < len; i++ ) { // vertical - if( sectionStack[k].propertyIsEnumerable( length ) && typeof sectionStack[k].splice === 'function' ) { + if( sectionStack[i].propertyIsEnumerable( length ) && typeof sectionStack[i].splice === 'function' ) { markdownSections += '
' + - '
' + sectionStack[k].map( createMarkdownSlide ).join( '
' ) + '
' + + '
' + sectionStack[i].map( createMarkdownSlide ).join( '
' ) + '
' + '
'; } else { - markdownSections += '
' + createMarkdownSlide( sectionStack[k] ) + '
'; + markdownSections += '
' + createMarkdownSlide( sectionStack[i] ) + '
'; } } @@ -178,9 +178,9 @@ var sections = document.querySelectorAll( '[data-markdown]'), section; - for( var j = 0, jlen = sections.length; j < jlen; j++ ) { + for( var i = 0, len = sections.length; i < len; i++ ) { - section = sections[j]; + section = sections[i]; if( section.getAttribute( 'data-markdown' ).length ) {