@lordfokas/yrframe 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,8 +2,6 @@ import { ComponentEvents } from "./ComponentEvents.js";
2
2
  import { Attributes } from "./utils.js";
3
3
  declare const evt: unique symbol;
4
4
  export declare class Component<A extends Attributes> extends HTMLElement {
5
- /** Attribute Event Qualifier chars. Attributes starting with this are special. */
6
- static readonly AEQ = "yr:";
7
5
  readonly [evt]: ComponentEvents;
8
6
  protected initialChildren: (string | Node)[];
9
7
  private wasConnected;
package/dist/Component.js CHANGED
@@ -1,9 +1,8 @@
1
1
  import { ComponentEvents } from "./ComponentEvents.js";
2
2
  import { ComponentFactory } from "./ComponentFactory.js";
3
+ import { specialAttributes } from "./utils.js";
3
4
  const evt = Symbol('evt');
4
5
  export class Component extends HTMLElement {
5
- /** Attribute Event Qualifier chars. Attributes starting with this are special. */
6
- static AEQ = 'yr:';
7
6
  [evt];
8
7
  initialChildren = [];
9
8
  wasConnected = false;
@@ -21,7 +20,7 @@ export class Component extends HTMLElement {
21
20
  Object.assign(all, props);
22
21
  const attrs = {};
23
22
  for (const [k, v] of Object.entries(all)) {
24
- if (!k.startsWith(Component.AEQ)) {
23
+ if (!specialAttributes.test(k)) {
25
24
  attrs[k] = v;
26
25
  }
27
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lordfokas/yrframe",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "A Typescript class-based WebComponents library using Material Design.",
5
5
  "main": "dist/yrframe.js",
6
6
  "scripts": {