diff options
author | Hakim El Hattab | 2013-08-23 17:51:20 -0400 |
---|---|---|
committer | Hakim El Hattab | 2013-08-23 17:51:20 -0400 |
commit | 4350c0024fed73032c9eb77e3f8af277d30047de (patch) | |
tree | 51a54bf4c0464e4ea3f27e5ef46b02932c3ebce8 /plugin | |
parent | b968dfef1534afb26c42d652234f32aafaeb65ff (diff) |
standardize way of declaring functions
Diffstat (limited to 'plugin')
-rwxr-xr-x | plugin/markdown/markdown.js | 14 |
1 files 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' ); |