qcobjects 2.4.46 → 2.4.49
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 -3
- 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)
|
|
@@ -2074,7 +2077,6 @@
|
|
|
2074
2077
|
view=undefined;
|
|
2075
2078
|
effect=undefined;
|
|
2076
2079
|
method = "GET";
|
|
2077
|
-
data = {};
|
|
2078
2080
|
cached= true;
|
|
2079
2081
|
__promise__ = null;
|
|
2080
2082
|
__namespace = undefined;
|
|
@@ -2909,20 +2911,23 @@
|
|
|
2909
2911
|
|
|
2910
2912
|
applyTransitionEffect(effectClassName) {
|
|
2911
2913
|
var _Effect = ClassFactory(effectClassName);
|
|
2914
|
+
if (typeof _Effect === "undefined" ){
|
|
2915
|
+
throw Error (`${effectClassName} not found.`);
|
|
2916
|
+
}
|
|
2912
2917
|
if (typeof _Effect !== "undefined" && is_a(_Effect, "TransitionEffect")) {
|
|
2913
2918
|
this.effect = New(_Effect, {
|
|
2914
2919
|
component: this
|
|
2915
2920
|
});
|
|
2916
2921
|
this.effect.apply(this.effect.defaultParams);
|
|
2917
2922
|
} else {
|
|
2918
|
-
logger.debug(`${__getType__(_Effect)} is not a TransitionEffect`);
|
|
2923
|
+
logger.debug(`${effectClassName} is ${__getType__(_Effect)} but is not a TransitionEffect`);
|
|
2919
2924
|
}
|
|
2920
2925
|
}
|
|
2921
2926
|
|
|
2922
2927
|
applyObserveTransitionEffect(effectClassName) {
|
|
2923
2928
|
if (isBrowser) {
|
|
2924
2929
|
var component = this;
|
|
2925
|
-
var _componentRoot = (component.shadowed) ? (component.shadowRoot) : (component.body);
|
|
2930
|
+
var _componentRoot = (component.shadowed) ? (component.shadowRoot.host) : (component.body);
|
|
2926
2931
|
var _applyEffect_ = function (element) {
|
|
2927
2932
|
component.applyTransitionEffect(effectClassName);
|
|
2928
2933
|
};
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.4.
|
|
1
|
+
2.4.49
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qcobjects",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.49",
|
|
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
|
});
|