Skip to content
Snippets Groups Projects
Commit 7e629936 authored by Hakim El Hattab's avatar Hakim El Hattab
Browse files

always use 'i' as iterator

parent 1c8fd605
No related branches found
No related tags found
No related merge requests found
......@@ -157,15 +157,15 @@
var markdownSections = '';
// flatten the hierarchical stack, and insert <section data-markdown> 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 += '<section '+ options.attributes +'>' +
'<section data-markdown>' + sectionStack[k].map( createMarkdownSlide ).join( '</section><section data-markdown>' ) + '</section>' +
'<section data-markdown>' + sectionStack[i].map( createMarkdownSlide ).join( '</section><section data-markdown>' ) + '</section>' +
'</section>';
}
else {
markdownSections += '<section '+ options.attributes +' data-markdown>' + createMarkdownSlide( sectionStack[k] ) + '</section>';
markdownSections += '<section '+ options.attributes +' data-markdown>' + createMarkdownSlide( sectionStack[i] ) + '</section>';
}
}
......@@ -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 ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment