dom-render
Advanced tools
Comparing version 1.0.20 to 1.0.21
@@ -8,2 +8,3 @@ import { ConstructorType } from './types/Types'; | ||
}[]; | ||
onInit?: (attrName: string, attrValue: string, obj: any) => void; | ||
proxyExcludeTyps?: ConstructorType<any>[]; | ||
@@ -10,0 +11,0 @@ applyEvents?: { |
@@ -388,2 +388,3 @@ 'use strict'; | ||
var raws = []; | ||
var onInitCallBack = []; | ||
genNode.childNodes.forEach(function (cNode, key) { | ||
@@ -489,4 +490,5 @@ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m; | ||
var _a, _b; | ||
var attrValue = _this.getAttributeAndDelete(element_2, it.attrName); | ||
if (attrValue) { | ||
var attrName = it.attrName; | ||
var attrValue = _this.getAttributeAndDelete(element_2, attrName); | ||
if (attrValue && attrName) { | ||
var documentFragment = it.callBack(element_2, attrValue, obj); | ||
@@ -498,2 +500,3 @@ if (documentFragment) { | ||
raws.push.apply(raws, rr); | ||
onInitCallBack.push({ attrName: attrName, attrValue: attrValue, obj: obj }); | ||
(_b = it === null || it === void 0 ? void 0 : it.complete) === null || _b === void 0 ? void 0 : _b.call(it, element_2, attrValue, obj); | ||
@@ -507,2 +510,3 @@ } | ||
this.replaceBody(genNode); | ||
onInitCallBack.forEach(function (it) { var _a; return (_a = config === null || config === void 0 ? void 0 : config.onInit) === null || _a === void 0 ? void 0 : _a.call(config, it.attrName, it.attrValue, obj); }); | ||
return raws; | ||
@@ -509,0 +513,0 @@ }; |
{ | ||
"name": "dom-render", | ||
"version": "1.0.20", | ||
"version": "1.0.21", | ||
"main": "DomRender.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -39,2 +39,3 @@ "use strict"; | ||
var raws = []; | ||
var onInitCallBack = []; | ||
genNode.childNodes.forEach(function (cNode, key) { | ||
@@ -140,4 +141,5 @@ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m; | ||
var _a, _b; | ||
var attrValue = _this.getAttributeAndDelete(element_2, it.attrName); | ||
if (attrValue) { | ||
var attrName = it.attrName; | ||
var attrValue = _this.getAttributeAndDelete(element_2, attrName); | ||
if (attrValue && attrName) { | ||
var documentFragment = it.callBack(element_2, attrValue, obj); | ||
@@ -149,2 +151,3 @@ if (documentFragment) { | ||
raws.push.apply(raws, rr); | ||
onInitCallBack.push({ attrName: attrName, attrValue: attrValue, obj: obj }); | ||
(_b = it === null || it === void 0 ? void 0 : it.complete) === null || _b === void 0 ? void 0 : _b.call(it, element_2, attrValue, obj); | ||
@@ -158,2 +161,3 @@ } | ||
this.replaceBody(genNode); | ||
onInitCallBack.forEach(function (it) { var _a; return (_a = config === null || config === void 0 ? void 0 : config.onInit) === null || _a === void 0 ? void 0 : _a.call(config, it.attrName, it.attrValue, obj); }); | ||
return raws; | ||
@@ -160,0 +164,0 @@ }; |
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
106845
2150