Open manolo opened 7 years ago
Note that just when the simple element extends an empty mixin, the problem is fixed.
/**
* @polymerMixin
*/
Foo = superClass => class FooMixin extends superClass {
};
class KkElement extends Foo(Polymer.Element) {
...
Probably the issue might be fixed in the analyzer.
Something I would really like to see which would fix this nicely is to add checkbox's to enable/disable each source of inherited properties/methods so you can focus on just what you care about.
Friendly ping to @aomarks. 🙂
@manolo Another one liner workaround is:
class SomeElement extends (class extends Polymer.Element {})
Reference: https://github.com/Polymer/tools/issues/1566#issuecomment-341096900
Description
Elements directly extending the Polymer.Element, shouldn't show methods listed in
Polymer.ElementMixin
orPolymer.PropertyEffects
Expected outcome
Create a new element with
polymer init
and addiron-component-page
to its index.html. Since the element does not have any method, the API should look:Actual outcome
The API of Polymer.Element is listed instead