render-core 1.3.68 → 1.3.69
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.
- package/package.json +1 -1
- package/runtime/TagProcessor.js +11 -6
package/package.json
CHANGED
package/runtime/TagProcessor.js
CHANGED
|
@@ -15,15 +15,20 @@ export function registerTagLib(application, component) {
|
|
|
15
15
|
console.warn("The Tag:" + component.getName().toUpperCase() + "has been registered!");
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
else {
|
|
18
|
+
else if (Array.isArray(component)) {
|
|
19
19
|
//if the input parameter is an array of Component,do the code block.
|
|
20
20
|
component.forEach(function (component) {
|
|
21
|
-
if (
|
|
22
|
-
application.tagLib.
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
if (component instanceof Component) {
|
|
22
|
+
if (!application.tagLib.has(component.getName().toUpperCase())) {
|
|
23
|
+
application.tagLib.set(component.getName().toUpperCase(), component);
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
console.warn("The Tag:" + component.getName().toUpperCase() + "has been registered!");
|
|
27
|
+
}
|
|
26
28
|
}
|
|
27
29
|
});
|
|
28
30
|
}
|
|
31
|
+
else {
|
|
32
|
+
console.warn("The tag element is not extended the Generic Obj");
|
|
33
|
+
}
|
|
29
34
|
}
|