@extscreen/es-core 10000.0.17 → 10000.0.18
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/dist/index.js +19 -15
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1786,12 +1786,6 @@ class ESLaunchManager {
|
|
|
1786
1786
|
|
|
1787
1787
|
setESRouterEnabled(enabled) {
|
|
1788
1788
|
this._ESRouterEnabled = enabled && this.isESRouterSupported();
|
|
1789
|
-
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
|
1790
|
-
ESLog.d('ESRouter', '#--------setESRouterEnabled------->>' + '\n' +
|
|
1791
|
-
'enabled: ' + enabled + '\n' +
|
|
1792
|
-
'_ESRouterEnabled: ' + this._ESRouterEnabled
|
|
1793
|
-
);
|
|
1794
|
-
}
|
|
1795
1789
|
try {
|
|
1796
1790
|
this._ESRouter.setEnabled(this._ESRouterEnabled);
|
|
1797
1791
|
} catch (e) {
|
|
@@ -1799,15 +1793,7 @@ class ESLaunchManager {
|
|
|
1799
1793
|
}
|
|
1800
1794
|
|
|
1801
1795
|
isESRouterEnabled() {
|
|
1802
|
-
|
|
1803
|
-
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
|
1804
|
-
ESLog.d('ESRouter', '#--------isESRouterEnabled------->>' + '\n' +
|
|
1805
|
-
'enabled: ' + enabled + '\n' +
|
|
1806
|
-
'_ESRouterEnabled: ' + this._ESRouterEnabled + '\n' +
|
|
1807
|
-
'isESRouterSupported: ' + this.isESRouterSupported()
|
|
1808
|
-
);
|
|
1809
|
-
}
|
|
1810
|
-
return enabled;
|
|
1796
|
+
return this._ESRouterEnabled && this.isESRouterSupported();
|
|
1811
1797
|
}
|
|
1812
1798
|
|
|
1813
1799
|
isESRouterSupported() {
|
|
@@ -2767,8 +2753,17 @@ const KEYCODE_SEARCH = 84;
|
|
|
2767
2753
|
var ESKeyEventMixin = {
|
|
2768
2754
|
mounted() {
|
|
2769
2755
|
if (!ESLaunchManager$1.isESRouterEnabled()) {
|
|
2756
|
+
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
|
2757
|
+
ESLog.d('ESRouter', '----ESKeyEventMixin---监听Activity----->>>>');
|
|
2758
|
+
}
|
|
2770
2759
|
ESApp.$on('DispatchKeyEvent', this.onDispatchKeyEvent);
|
|
2771
2760
|
}
|
|
2761
|
+
//
|
|
2762
|
+
else {
|
|
2763
|
+
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
|
2764
|
+
ESLog.d('ESRouter', '----ESKeyEventMixin---监听Fragment----->>>>');
|
|
2765
|
+
}
|
|
2766
|
+
}
|
|
2772
2767
|
},
|
|
2773
2768
|
beforeDestroy() {
|
|
2774
2769
|
if (!ESLaunchManager$1.isESRouterEnabled()) {
|
|
@@ -2813,9 +2808,18 @@ var ESKeyEventMixin = {
|
|
|
2813
2808
|
var ESLifecycleMixin = {
|
|
2814
2809
|
mounted() {
|
|
2815
2810
|
if (!ESLaunchManager$1.isESRouterEnabled()) {
|
|
2811
|
+
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
|
2812
|
+
ESLog.d('ESRouter', '----ESLifecycleMixin---监听Activity----->>>>');
|
|
2813
|
+
}
|
|
2816
2814
|
ESApp.$on('OnNewIntent', this.onESLifecycleNewIntent);
|
|
2817
2815
|
ESApp.$on('LifecycleChange', this.onESLifecycleChanged);
|
|
2818
2816
|
}
|
|
2817
|
+
//
|
|
2818
|
+
else {
|
|
2819
|
+
if (ESLog.isLoggable(ESLog.DEBUG)) {
|
|
2820
|
+
ESLog.d('ESRouter', '----ESLifecycleMixin---监听Fragment----->>>>');
|
|
2821
|
+
}
|
|
2822
|
+
}
|
|
2819
2823
|
},
|
|
2820
2824
|
beforeDestroy() {
|
|
2821
2825
|
if (!ESLaunchManager$1.isESRouterEnabled()) {
|