@@ -38,7 +38,7 @@ processBlock = (block)->
3838 if not Table .comps [block .comp ]
3939 Table .comps [block .name ] = {name : block .name , parts : []}
4040 Table .comps [block .name ].block = block
41-
41+
4242 # Having a component tag means it's part of a component page
4343 if block .comp
4444 if not Table .comps [block .comp ]
@@ -123,10 +123,10 @@ class DocBlock
123123 else
124124 return false
125125
126- # Method for returning the documentation for this block
126+ # Method for returning the documentation for this block
127127 getContent : ()->
128128 if @ isFunctionTag (@prevTag ) then @code .push (" </dl>" )
129- return @code .join (" \n " ) + triggerBlock (@triggers ) + seeBlock (@see )
129+ return @code .join (" \n " ) + triggerBlock (@triggers ) + seeBlock (@see )
130130
131131# parse js file
132132parseJS = (path ) ->
@@ -140,7 +140,7 @@ parseJS = (path) ->
140140 block = new DocBlock ()
141141 block .file = path
142142 block .line = ln
143- open = true
143+ open = true
144144 # process
145145 if open
146146 block .processLine (line)
@@ -153,18 +153,18 @@ parseJS = (path) ->
153153 if block .categories .length is 0 and block .comp is null
154154 console .log (" No component or category for block at #{ block .file } :#{ block .line + 1 } (#{ block .name } )" )
155155 data .push block
156-
156+
157157
158158cleanName = (name ) -> name .replace (" ." , " -" )
159159
160160triggerBlock = (triggers , noheader )->
161- return ' ' if triggers ? .length is 0
162- if noheader then block = " <dl>" else block = " \n <h4>Events</h4>\n <dl>"
161+ return ' ' if triggers ? .length is 0
162+ if noheader then block = " <dl>" else block = " \n <h4>Events</h4>\n <dl>"
163163 for t in triggers
164164 if t .objProp ?
165- block += " <dt><span class='event-name'>#{ t .event } </span> [<span class='event-property-name'>#{ t .objName } </span>: <span class='event-property'>#{ t .objProp } </span>]</dt><dd>#{ t .description } </dd>\n "
165+ block += " <dt><span class='event-name'>#{ t .event } </span> [<span class='event-property-name'>#{ t .objName } </span>: <span class='event-property'>#{ t .objProp } </span>]</dt><dd>#{ t .description } </dd>\n "
166166 else
167- block += " <dt><span class='event-name'>#{ t .event } </span></dt><dd>#{ t .description } </dd>\n "
167+ block += " <dt><span class='event-name'>#{ t .event } </span></dt><dd>#{ t .description } </dd>\n "
168168 block += " </dl>"
169169 return block
170170
@@ -185,9 +185,9 @@ createPage = (page)->
185185 eventContent = " ##{ page .name } \n " + triggerBlock (page .block .triggers , true )
186186
187187 partContent = " "
188- if page .parts .length
188+ if page .parts .length
189189 partList = " <div class='doc-contents'><h4>Properties and Methods</h4><ul>"
190- for part in page .parts
190+ for part in page .parts
191191 clName = cleanName (part .name )
192192 partList += """ <li><a href='##{ clName} '>#{ part .name } </a></li>"""
193193 partContent += " \n\n <div id='#{ clName} ' class='docblock'>\n\n <a href='#doc-nav' class='doc-top'>Back to top</a><h2>#{ part .name } </h2>\n " + marked (part .getContent ()) + " \n\n </div>\n\n "
@@ -219,7 +219,7 @@ saveMd = (data) ->
219219 nav_html += " <li><a href='#{ cleanName (page .name )} .html'>#{ page .name } </a></li>"
220220
221221 # Pages can be listed multiple times in the nav, but we should only generate them once
222- continue if page .flagged is true
222+ continue if page .flagged is true
223223 page .flagged = true
224224
225225 # Make page
@@ -246,7 +246,7 @@ saveMd = (data) ->
246246 for page in pages
247247 html = template .replace (" CONTENT_DIV" , page .content_html ).replace (" NAV_DIV" , nav_html)
248248 writeOut (page .name , html)
249-
249+
250250 return
251251
252252
@@ -267,7 +267,7 @@ document = (files, output, template, version, callback)->
267267 dirOut = output
268268 versionString = version
269269 for file in files
270- parseJS file
270+ parseJS file
271271
272272 # Save the data to files
273273 saveMd data
0 commit comments