From 4350c0024fed73032c9eb77e3f8af277d30047de Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Fri, 23 Aug 2013 17:51:20 -0400 Subject: [PATCH] standardize way of declaring functions --- plugin/markdown/markdown.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/plugin/markdown/markdown.js b/plugin/markdown/markdown.js index 68b534b..e3fe0f8 100755 --- a/plugin/markdown/markdown.js +++ b/plugin/markdown/markdown.js @@ -14,7 +14,7 @@ }); } - var stripLeadingWhitespace = function( section ) { + function stripLeadingWhitespace( section ) { var template = section.querySelector( 'script' ); @@ -35,7 +35,7 @@ }; - var twrap = function( el ) { + function twrap( el ) { var content = el.content || el; @@ -47,7 +47,7 @@ }; - var getForwardedAttributes = function( section ) { + function getForwardedAttributes( section ) { var attributes = section.attributes; var result = []; @@ -71,7 +71,7 @@ }; - var slidifyMarkdown = function( markdown, separator, vertical, notes, attributes ) { + function slidifyMarkdown( markdown, separator, vertical, notes, attributes ) { separator = separator || '^\n---\n$'; notes = notes || 'note:'; @@ -146,7 +146,7 @@ return markdownSections; }; - var queryExternalMarkdown = function() { + function queryExternalMarkdown() { var sections = document.querySelectorAll( '[data-markdown]'), section; @@ -199,7 +199,7 @@ }; - var queryMarkdownSlides = function() { + function queryMarkdownSlides() { var sections = document.querySelectorAll( '[data-markdown]'); @@ -211,7 +211,7 @@ }; - var makeHtml = function( section ) { + function makeHtml( section ) { var notes = section.querySelector( 'aside.notes' ); -- 2.26.2