Comparing version 0.0.3 to 0.0.4
{ | ||
"name": "azdom", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "A DOM manager library.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -15,3 +15,3 @@ import { randGen } from '../node_modules/jsstrgen/jsstrgen.js'; | ||
/** | ||
* The ui function is a helper function that takes 4 arguments, `componentClass`, | ||
* The ui function is a helper function that takes 3 arguments, `componentClass`, | ||
* `domElement`, `options` (optional, defaults to {}), and `init` (optional, defaults to false) | ||
@@ -41,7 +41,4 @@ * and returns a cached representation of the ui component managed by the `componentClass`. | ||
* {} by default. | ||
* | ||
* The `init` indicates whether the `azInit` should be run if the ui component is retrieved from | ||
* the `objCache`, false by default. | ||
*/ | ||
az.ui = (componentClass, domElement, options = {}, init = false) => { | ||
az.ui = (componentClass, domElement, options = {}) => { | ||
const node = resolveDOM(null, domElement); | ||
@@ -52,3 +49,3 @@ let objId = node.getAttribute('azdom-' + componentClass.name); | ||
if (componentObject) { | ||
init && typeof componentObject.azInit === 'function' && componentObject.azInit(node, options); | ||
typeof componentObject.azInit === 'function' && componentObject.azInit(node, options); | ||
objCache[objId] = componentObject; | ||
@@ -55,0 +52,0 @@ return componentObject; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4798
81