diff options
| author | Xavier Morel <xmo@odoo.com> | 2018-10-01 17:25:59 +0200 |
|---|---|---|
| committer | Xavier Morel <xmo@odoo.com> | 2018-10-01 17:31:41 +0200 |
| commit | 00eefae98de7563b0c8018243ddf06482890fd51 (patch) | |
| tree | 7330e1bfcfee3a6e7bec3f34257af9a14e1d4ad0 /doc/_extensions/autojsdoc | |
| parent | 453e81cdc8c28d638d1e82cf9227c5740dbfa48c (diff) | |
[FIX] doc: implement delegation/inheritance in JS documenter
Else website_sale_wishlist.wishlist blows up the documenter:
``events`` is set to sAnimations.Class.events but that is not an "own
property" of sAnimation.Class, it is instead inherited from Widget.
If delegation is not implemented, the value resolves to <nothing>,
which blows up when trying to set its name to the "property name" (by
calling ``set_name``).
Diffstat (limited to 'doc/_extensions/autojsdoc')
| -rw-r--r-- | doc/_extensions/autojsdoc/parser/jsdoc.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/_extensions/autojsdoc/parser/jsdoc.py b/doc/_extensions/autojsdoc/parser/jsdoc.py index eb9d595330a..e6bd609f298 100644 --- a/doc/_extensions/autojsdoc/parser/jsdoc.py +++ b/doc/_extensions/autojsdoc/parser/jsdoc.py @@ -263,7 +263,8 @@ class ClassDoc(NSDoc): # FIXME: should ideally be a proxy namespace if method_name == 'prototype': return self - return super(ClassDoc, self).get_property(method_name) + return super(ClassDoc, self).get_property(method_name)\ + or (self.superclass and self.superclass.get_property(method_name)) @property def mixins(self): |
