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.js CHANGED
@@ -1978,11 +1978,11 @@ var jmEvents = /*#__PURE__*/function () {
1978
1978
  }
1979
1979
  }
1980
1980
  }, {
1981
- key: "destory",
1981
+ key: "destroy",
1982
1982
  value: // 销毁
1983
- function destory() {
1984
- this.mouseHandler.destory();
1985
- this.keyHandler.destory();
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: "destory",
2112
- value: function destory() {
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: "destory",
2193
- value: function destory() {
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.destoryed) {
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: "destory",
3129
- value: function destory() {
3130
- this.eventHandler.destory();
3131
- this.destoryed = true; // 标记已销毁
3128
+ key: "destroy",
3129
+ value: function destroy() {
3130
+ this.eventHandler.destroy();
3131
+ this.destroyed = true; // 标记已销毁
3132
3132
  }
3133
3133
  }], [{
3134
3134
  key: "create",