MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / on

Function on

src/leaflet/components/ComponentsViewBase.js:74–76  ·  view source on GitHub ↗

* @function ComponentsViewBase.prototype.on * @description 事件绑定。 * @param {string} eventType - 监听的事件类型。 * @param {function} callback - 监听事件的回调函数。

(eventType, callback)

Source from the content-addressed store, hash-verified

72 * @param {function} callback - 监听事件的回调函数。
73 */
74 on(eventType, callback) {
75 this._event.on(eventType, callback);
76 },
77
78 /**
79 * @function ComponentsViewBase.prototype.off

Callers

nothing calls this directly

Calls 1

onMethod · 0.45

Tested by

no test coverage detected