File tree Expand file tree Collapse file tree 2 files changed +13
-28
lines changed
Expand file tree Collapse file tree 2 files changed +13
-28
lines changed Original file line number Diff line number Diff line change @@ -124,34 +124,6 @@ <h3>API Documentation</h3>
124124 -->
125125 </ div >
126126
127- < h4 > Properties:</ h4 >
128- < ul class = "properties inner-block" >
129- { % if not fields % }
130- < li > No properties available.</ li >
131- { % elsif not fields . length % }
132- < li > No properties available.</ li >
133- { % else % }
134- < li >
135- < table class = "pure-table" >
136- < thead >
137- < tr >
138- < th > < sub > Name</ sub > </ th >
139- < th > < sub > Type</ sub > </ th >
140- </ tr >
141- </ thead >
142- < tbody >
143- { % each fields as field % }
144- < tr id = "{{jsClassName}}/field/{{field.name}}" >
145- < td > < strong > { { field . name} } </ strong > </ td >
146- < td > { { field . jsClassName } } </ td >
147- </ tr >
148- { % endeach % }
149- </ tbody >
150- </ table >
151- </ li >
152- { % endif % }
153- </ ul >
154-
155127 < h4 > Functions:</ h4 >
156128 { % if not functions % }
157129 < ul class = "functions inner-block" >
Original file line number Diff line number Diff line change 4848
4949 content . append ( contentOutput ) ;
5050
51+ // Join the fields and functions (they are both functions).
52+ if ( ctor . fields && ctor . functions ) {
53+ ctor . functions . push . apply ( ctor . functions , ctor . fields ) ;
54+ }
55+ else {
56+ ctor . functions = ctor . functions || ctor . fields ;
57+ }
58+
5159 ( ctor . functions || [ ] ) . forEach ( function ( func ) {
5260 var isPrototype = func . isPrototypeMethod ? "#" : "." ;
5361 anchor . find ( ".subnav" ) . append ( "<a href='#" + ctor . jsClassName + "/function/" + func . jsFunctionName + "'><li>" + ctor . jsClassName + isPrototype + func . jsFunctionName + "</li></a>" ) ;
5462 } ) ;
63+
64+ ( ctor . fields || [ ] ) . forEach ( function ( field ) {
65+ var isPrototype = "#" ;
66+ anchor . find ( ".subnav" ) . append ( "<a href='#" + ctor . jsClassName + "/function/" + func . jsFunctionName + "'><li>" + ctor . jsClassName + isPrototype + func . jsFunctionName + "</li></a>" ) ;
67+ } ) ;
5568 } ) ;
5669
5770 // Size the navigation bar correctly.
You can’t perform that action at this time.
0 commit comments