Comparing version 0.0.7 to 0.0.8
15
azdom.js
@@ -32,10 +32,5 @@ import { randGen } from '/node_modules/jsstrgen/jsstrgen.js'; | ||
* | ||
* The `componentclass` could optional provide an `azInit(domElement, options)` method for the | ||
* ui component initialization. | ||
* | ||
* The `domElement` could be a dom element, a css style query string, or a function that returns | ||
* any of the types of the `domElement`. | ||
* | ||
* The `options` could be anything that will be comsumed by the `azInit` of the `componentClass`, | ||
* {} by default. | ||
* The `componentclass` could optional provide an `azInit(options)` method for the ui component | ||
* initialization. The `options` could be anything that will be comsumed by the `azInit` of the | ||
* `componentClass`, {} by default. | ||
*/ | ||
@@ -48,3 +43,3 @@ az.ui = (componentClass, domElement, options = {}) => { | ||
if (componentObject) { | ||
typeof componentObject.azInit === 'function' && componentObject.azInit(node, options); | ||
typeof componentObject.azInit === 'function' && componentObject.azInit(options); | ||
objCache[objId] = componentObject; | ||
@@ -59,5 +54,5 @@ return componentObject; | ||
node.setAttribute('azdom-' + componentClass.name, objId); | ||
typeof componentObject.azInit === 'function' && componentObject.azInit(node, options); | ||
typeof componentObject.azInit === 'function' && componentObject.azInit(options); | ||
objCache[objId] = componentObject; | ||
return componentObject; | ||
}; |
{ | ||
"name": "azdom", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "A DOM manager library.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
18181
491