qcobjects 2.4.46 → 2.4.48
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/QCObjects.js +8 -2
- package/VERSION +1 -1
- package/package.json +1 -1
- package/spec/testsTypeSpec.js +1 -1
package/QCObjects.js
CHANGED
|
@@ -784,6 +784,9 @@
|
|
|
784
784
|
var __getType__ = function __getType__(o_c) {
|
|
785
785
|
var _ret_ = "";
|
|
786
786
|
switch (true) {
|
|
787
|
+
case __is_raw_class__(o_c) && !!o_c.name:
|
|
788
|
+
_ret_ = o_c.name;
|
|
789
|
+
break;
|
|
787
790
|
case typeof o_c === "object" &&
|
|
788
791
|
(!!o_c.constructor &&
|
|
789
792
|
!!o_c.constructor.name)
|
|
@@ -2909,20 +2912,23 @@
|
|
|
2909
2912
|
|
|
2910
2913
|
applyTransitionEffect(effectClassName) {
|
|
2911
2914
|
var _Effect = ClassFactory(effectClassName);
|
|
2915
|
+
if (typeof _Effect === "undefined" ){
|
|
2916
|
+
throw Error (`${effectClassName} not found.`);
|
|
2917
|
+
}
|
|
2912
2918
|
if (typeof _Effect !== "undefined" && is_a(_Effect, "TransitionEffect")) {
|
|
2913
2919
|
this.effect = New(_Effect, {
|
|
2914
2920
|
component: this
|
|
2915
2921
|
});
|
|
2916
2922
|
this.effect.apply(this.effect.defaultParams);
|
|
2917
2923
|
} else {
|
|
2918
|
-
logger.debug(`${__getType__(_Effect)} is not a TransitionEffect`);
|
|
2924
|
+
logger.debug(`${effectClassName} is ${__getType__(_Effect)} but is not a TransitionEffect`);
|
|
2919
2925
|
}
|
|
2920
2926
|
}
|
|
2921
2927
|
|
|
2922
2928
|
applyObserveTransitionEffect(effectClassName) {
|
|
2923
2929
|
if (isBrowser) {
|
|
2924
2930
|
var component = this;
|
|
2925
|
-
var _componentRoot = (component.shadowed) ? (component.shadowRoot) : (component.body);
|
|
2931
|
+
var _componentRoot = (component.shadowed) ? (component.shadowRoot.host) : (component.body);
|
|
2926
2932
|
var _applyEffect_ = function (element) {
|
|
2927
2933
|
component.applyTransitionEffect(effectClassName);
|
|
2928
2934
|
};
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.4.
|
|
1
|
+
2.4.48
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qcobjects",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.48",
|
|
4
4
|
"description": "QCObjects is an Open-source framework that empowers full-stack developers to make micro-services and micro-frontends into an N-Tier architecture.",
|
|
5
5
|
"main": "QCObjects.js",
|
|
6
6
|
"license": "LGPL-3.0",
|
package/spec/testsTypeSpec.js
CHANGED
|
@@ -19,7 +19,7 @@ describe("Type Spec", function () {
|
|
|
19
19
|
var main = new CustomMain();
|
|
20
20
|
|
|
21
21
|
expect(__getType__(Main)).toEqual("Main");
|
|
22
|
-
expect(__getType__(CustomMain)).toEqual("
|
|
22
|
+
expect(__getType__(CustomMain)).toEqual("CustomMain");
|
|
23
23
|
expect(__getType__(main)).toEqual("CustomMain");
|
|
24
24
|
logger.debug("Type Test Spec... OK");
|
|
25
25
|
});
|