jmgraph 3.1.93 → 3.1.94
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/jmgraph.core.min.js +1 -1
- package/dist/jmgraph.core.min.js.map +1 -1
- package/dist/jmgraph.js +13 -13
- package/dist/jmgraph.min.js +1 -1
- package/package.json +1 -1
- package/src/core/jmEvents.js +5 -5
- package/src/core/jmGraph.js +4 -4
package/dist/jmgraph.js
CHANGED
|
@@ -1978,11 +1978,11 @@ var jmEvents = /*#__PURE__*/function () {
|
|
|
1978
1978
|
}
|
|
1979
1979
|
}
|
|
1980
1980
|
}, {
|
|
1981
|
-
key: "
|
|
1981
|
+
key: "destroy",
|
|
1982
1982
|
value: // 销毁
|
|
1983
|
-
function
|
|
1984
|
-
this.mouseHandler.
|
|
1985
|
-
this.keyHandler.
|
|
1983
|
+
function destroy() {
|
|
1984
|
+
this.mouseHandler.destroy();
|
|
1985
|
+
this.keyHandler.destroy();
|
|
1986
1986
|
}
|
|
1987
1987
|
}]);
|
|
1988
1988
|
|
|
@@ -2108,8 +2108,8 @@ var jmMouseEvent = /*#__PURE__*/function () {
|
|
|
2108
2108
|
} // 销毁所有事件
|
|
2109
2109
|
|
|
2110
2110
|
}, {
|
|
2111
|
-
key: "
|
|
2112
|
-
value: function
|
|
2111
|
+
key: "destroy",
|
|
2112
|
+
value: function destroy() {
|
|
2113
2113
|
for (var name in this.eventEvents) {
|
|
2114
2114
|
var event = this.eventEvents[name];
|
|
2115
2115
|
if (!event || !event.fun) continue;
|
|
@@ -2189,8 +2189,8 @@ var jmKeyEvent = /*#__PURE__*/function () {
|
|
|
2189
2189
|
} // 销毁所有事件
|
|
2190
2190
|
|
|
2191
2191
|
}, {
|
|
2192
|
-
key: "
|
|
2193
|
-
value: function
|
|
2192
|
+
key: "destroy",
|
|
2193
|
+
value: function destroy() {
|
|
2194
2194
|
for (var name in this.eventEvents) {
|
|
2195
2195
|
var event = this.eventEvents[name];
|
|
2196
2196
|
if (!event || !event.fun) continue;
|
|
@@ -3108,7 +3108,7 @@ var jmGraph = /*#__PURE__*/function (_jmControl) {
|
|
|
3108
3108
|
this.___isAutoRefreshing = true;
|
|
3109
3109
|
|
|
3110
3110
|
function update() {
|
|
3111
|
-
if (self.
|
|
3111
|
+
if (self.destroyed) {
|
|
3112
3112
|
self.___isAutoRefreshing = false;
|
|
3113
3113
|
return; // 已销毁
|
|
3114
3114
|
}
|
|
@@ -3125,10 +3125,10 @@ var jmGraph = /*#__PURE__*/function (_jmControl) {
|
|
|
3125
3125
|
} // 销毁当前对象
|
|
3126
3126
|
|
|
3127
3127
|
}, {
|
|
3128
|
-
key: "
|
|
3129
|
-
value: function
|
|
3130
|
-
this.eventHandler.
|
|
3131
|
-
this.
|
|
3128
|
+
key: "destroy",
|
|
3129
|
+
value: function destroy() {
|
|
3130
|
+
this.eventHandler.destroy();
|
|
3131
|
+
this.destroyed = true; // 标记已销毁
|
|
3132
3132
|
}
|
|
3133
3133
|
}], [{
|
|
3134
3134
|
key: "create",
|