Skip to content

Fix ReferenceError in default theme #576

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 26, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion default_theme/section._
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
<% if (property.properties) { %>
<ul>
<% property.properties.forEach(function(property) { %>
<li><code><%- name%></code> <%= formatType(property.type) %>
<li><code><%- property.name %></code> <%= formatType(property.type) %>
<% if (property.default) { %>
(default <code><%- property.default %></code>)
<% } %>
Expand Down
9 changes: 9 additions & 0 deletions test/fixture/html/nested.input.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@ Klass.prototype.getFoo = function () {
Klass.prototype.withOptions = function (options, otherOptions) {
};

/**
* @typedef CustomError
* @name CustomError
* @description a typedef with nested properties
* @property {object} error An error
* @property {string} error.code The error's code
* @property {string} error.description The error's description
*/

/**
* Decide whether an object is a Klass instance
* This is a [klasssic]{@link Klass}
Expand Down
82 changes: 82 additions & 0 deletions test/fixture/html/nested.output.files
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,16 @@
</li>


<li><a
href='#customerror'
class="">
CustomError

</a>

</li>


<li><a
href='#bar'
class="">
Expand Down Expand Up @@ -793,6 +803,78 @@ k.isArrayOfBuffers();</pre>



</section>




<section class='p2 mb2 clearfix bg-white minishadow'>


<div class='clearfix'>

<h3 class='fl m0' id='customerror'>
CustomError
</h3>


</div>


<p>a typedef with nested properties</p>


<div class='pre p1 fill-light mt0'>CustomError</div>












<div class='py1 quiet mt1 prose-big'>Properties</div>
<div>

<div class='space-bottom0'>
<span class='code bold'>error</span> <code class='quiet'>(<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object">object</a>)</code>
: An error


<ul>

<li><code>error.code</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>

<p>The error's code</p>
</li>

<li><code>error.description</code> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>

<p>The error's description</p>
</li>

</ul>

</div>

</div>













</section>


Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy