From 46ff7743a1d77976a180cf89ebe5ceb32dbae449 Mon Sep 17 00:00:00 2001 From: Matt Mo Date: Tue, 24 Aug 2021 23:59:38 -0700 Subject: [PATCH] Adding more documentation to make it easier when writing extensions. --- ignite-element.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ignite-element.js b/ignite-element.js index 1dae032..e8f974b 100644 --- a/ignite-element.js +++ b/ignite-element.js @@ -50,10 +50,19 @@ class IgniteElement extends HTMLElement { constructor() { super(); + /** @type {Boolean} */ this.elementConnected = false; //Used to know if the connectedCallback was already called. + + /** @type {IgniteTemplate} */ this.template = null; + + /** @type {HTMLElement[]} */ this.elements = []; + + /** @type {IgniteCallback} */ this.readyCallback = new IgniteCallback(() => this.ready()); + + /** @type {IgniteCallback[]} */ this.onDisconnectCallbacks = []; //Create the variables for this element.