@base-framework/base 3.7.21 → 3.7.23

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.
@@ -76,6 +76,9 @@ export class Html {
76
76
  /**
77
77
  * This will remove an elements data.
78
78
  *
79
+ * Uses an iterative depth-first traversal instead of recursion
80
+ * to avoid call-stack overhead on deep DOM trees.
81
+ *
79
82
  * @param {object} ele
80
83
  */
81
84
  static removeElementData(ele: object): void;
@@ -1,6 +1,5 @@
1
1
  export namespace Directives {
2
- let keys: Array<any>;
3
- let items: object;
2
+ let items: Map<string, Function>;
4
3
  /**
5
4
  * This will add a directive.
6
5
  *
@@ -13,13 +12,7 @@ export namespace Directives {
13
12
  * This will get a directive.
14
13
  *
15
14
  * @param {string} name
16
- * @returns {object|null}
15
+ * @returns {function|null}
17
16
  */
18
- function get(name: string): object | null;
19
- /**
20
- * This will get all directive names.
21
- *
22
- * @returns {Array<any>}
23
- */
24
- function all(): Array<any>;
17
+ function get(name: string): Function | null;
25
18
  }
@@ -1 +1 @@
1
- export function AttributeDirective(attr: string, directive: object): object;
1
+ export function AttributeDirective(attr: object, directive: Function): object;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base-framework/base",
3
- "version": "3.7.21",
3
+ "version": "3.7.23",
4
4
  "description": "This is a javascript framework.",
5
5
  "main": "./dist/base.js",
6
6
  "type": "module",