MCPcopy Create free account
hub / github.com/SuperMap/iClient-JavaScript / off

Function off

src/leaflet/components/ComponentsViewBase.js:84–90  ·  view source on GitHub ↗

* @function ComponentsViewBase.prototype.off * @description 事件关闭。 * @param {string} eventType - 监听的事件名。 * @param {function} callback - 监听事件的回调函数。

(eventType, callback)

Source from the content-addressed store, hash-verified

82 * @param {function} callback - 监听事件的回调函数。
83 */
84 off(eventType, callback) {
85 if (callback) {
86 this._event.off(eventType, callback);
87 return;
88 }
89 this._event.off(eventType);
90 },
91
92 /**
93 * @function ComponentsViewBase.prototype._initView

Callers

nothing calls this directly

Calls 1

offMethod · 0.45

Tested by

no test coverage detected