aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2013-08-24 11:06:52 -0400
committerHakim El Hattab <hakim.elhattab@gmail.com>2013-08-24 11:06:52 -0400
commit7e629936e576ea3205d391070d10bbc26ed8e120 (patch)
treecde3a7e7d7f122763b84f7aec09864e00bb2ac58 /plugin
parent1c8fd60595134b8501fa1b4d07dcc11d6ec65d8c (diff)
downloadfosdem-2018-presentation-7e629936e576ea3205d391070d10bbc26ed8e120.tar
fosdem-2018-presentation-7e629936e576ea3205d391070d10bbc26ed8e120.tar.gz
always use 'i' as iterator
Diffstat (limited to 'plugin')
-rwxr-xr-xplugin/markdown/markdown.js12
1 files 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 <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 ) {