From 00eefae98de7563b0c8018243ddf06482890fd51 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Mon, 1 Oct 2018 17:25:59 +0200 Subject: [PATCH] [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 , which blows up when trying to set its name to the "property name" (by calling ``set_name``). --- doc/_extensions/autojsdoc/parser/jsdoc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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):