Skip to content

Commit d723abf

Browse files
committed
feat(design): move properties above constructor
1 parent 1206192 commit d723abf

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

tmpl/details.tmpl

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,6 @@ if (data.defaultvalue && (data.defaultvaluetype === 'object' || data.defaultvalu
99
defaultObjectClass = ' class="object-value"';
1010
}
1111
?>
12-
<?js
13-
var properties = data.properties;
14-
if (properties && properties.length && properties.forEach) {
15-
?>
16-
17-
<h5 class="subsection-title">Properties:</h5>
18-
19-
<?js= this.partial('properties.tmpl', data) ?>
20-
21-
<?js } ?>
2212

2313
<dl class="details">
2414

tmpl/method.tmpl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@ var data = obj;
33
var self = this;
44
?>
55
<?js if (data.kind !== 'module') { ?>
6+
7+
<?js
8+
var properties = data.properties;
9+
if (properties && properties.length && properties.forEach) {
10+
?>
11+
12+
<h5 class="subsection-title">Properties:</h5>
13+
<?js= this.partial('properties.tmpl', data) ?>
14+
15+
<?js } ?>
16+
617
<?js if (data.kind === 'class' && data.classdesc) { ?>
718
<h2>Constructor</h2>
819
<?js } ?>

0 commit comments

Comments
 (0)