Skip to content

Commit 6914078

Browse files
committed
Add closure types
1 parent 9b87d56 commit 6914078

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

lib/legacy/legacy-element-mixin.js

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,23 +34,31 @@ let styleInterface = window.ShadyCSS;
3434
* @polymer
3535
* @appliesMixin ElementMixin
3636
* @appliesMixin GestureEventListeners
37+
* @appliesMixin DirMixin
3738
* @property isAttached {boolean} Set to `true` in this element's
3839
* `connectedCallback` and `false` in `disconnectedCallback`
3940
* @summary Element class mixin that provides Polymer's "legacy" API
4041
*/
4142
export const LegacyElementMixin = dedupingMixin((base) => {
4243

44+
// TODO(kschaaf): Note, the `@implements {Polymer_DirMixin}` is required here
45+
// (rather than on legacyElementBase) for unknown reasons.
46+
/**
47+
* @constructor
48+
* @implements {Polymer_ElementMixin}
49+
* @implements {Polymer_GestureEventListeners}
50+
* @implements {Polymer_DirMixin}
51+
* @extends {HTMLElement}
52+
* @private
53+
*/
4354
const GesturesElement = GestureEventListeners(ElementMixin(base));
4455

4556
// Note, the DirMixin does nothing if css is built so avoid including it
4657
// in that case.
4758

4859
/**
4960
* @constructor
50-
* @implements {Polymer_ElementMixin}
51-
* @implements {Polymer_GestureEventListeners}
52-
* @implements {Polymer_DirMixin}
53-
* @extends {HTMLElement}
61+
* @extends {GesturesElement}
5462
* @private
5563
*/
5664
const legacyElementBase = builtCSS ? GesturesElement :

0 commit comments

Comments
 (0)