Merge pull request #1187 from pagameba/fix-todo-observables
Fix todo observables.
This commit is contained in:
@@ -15,7 +15,7 @@ exports.defineTags = function(dictionary) {
|
|||||||
var readonly = parts.length > 3 && parts[3] === 'readonly';
|
var readonly = parts.length > 3 && parts[3] === 'readonly';
|
||||||
var description = (readonly ? parts.slice(4) : parts.slice(3)).join(' ');
|
var description = (readonly ? parts.slice(4) : parts.slice(3)).join(' ');
|
||||||
doclet.observables.push({
|
doclet.observables.push({
|
||||||
name: parts[2],
|
name: parts[1],
|
||||||
type: {
|
type: {
|
||||||
names: tag.value.type.names
|
names: tag.value.type.names
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -7,8 +7,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<th>Name</th>
|
<th>Name</th>
|
||||||
<th>Type</th>
|
<th>Type</th>
|
||||||
<th>Get</th>
|
<th>Settable</th>
|
||||||
<th>Set</th>
|
|
||||||
<th>Event</th>
|
<th>Event</th>
|
||||||
<th class="last">Description</th>
|
<th class="last">Description</th>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -19,7 +18,6 @@
|
|||||||
var self = this;
|
var self = this;
|
||||||
props.forEach(function(prop) {
|
props.forEach(function(prop) {
|
||||||
if (!prop) { return; }
|
if (!prop) { return; }
|
||||||
var getter = 'yes';
|
|
||||||
var setter = prop.readonly ? 'no' : 'yes';
|
var setter = prop.readonly ? 'no' : 'yes';
|
||||||
?>
|
?>
|
||||||
|
|
||||||
@@ -30,7 +28,6 @@
|
|||||||
<?js= self.partial('type.tmpl', prop.type.names) ?>
|
<?js= self.partial('type.tmpl', prop.type.names) ?>
|
||||||
<?js } ?>
|
<?js } ?>
|
||||||
</td>
|
</td>
|
||||||
<td class="getter"><?js= getter ?></td>
|
|
||||||
<td class="setter"><?js= setter ?></td>
|
<td class="setter"><?js= setter ?></td>
|
||||||
<td class="event"><code>change:<?js= prop.name ?></code></td>
|
<td class="event"><code>change:<?js= prop.name ?></code></td>
|
||||||
<td class="description last"><?js= prop.description ?></td>
|
<td class="description last"><?js= prop.description ?></td>
|
||||||
|
|||||||
Reference in New Issue
Block a user