Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

azdom

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

azdom - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

2

package.json
{
"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;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc