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

Method un

src/common/commontypes/Events.js:306–312  ·  view source on GitHub ↗

* @function Events.prototype.un * @description 在一个相同的范围内取消注册监听器的方法,此方法调用 unregister 函数。 * @example * // 移除 "loadstart" 事件监听 * events.un({"loadstart": loadStartListener}); * * // 使用 "unregister" 方法移除 "loadstart" 事件监听 * events.unregister("loadstart", undefined, loadS

(object)

Source from the content-addressed store, hash-verified

304 * @param {Object} object - 移除监听的对象。
305 */
306 un(object) {
307 for (var type in object) {
308 if (type !== "scope" && object.hasOwnProperty(type)) {
309 this.unregister(type, object.scope, object[type]);
310 }
311 }
312 }
313
314 /**
315 * @function Events.prototype.unregister

Callers 5

offMethod · 0.45
unbindEventMethod · 0.45
ThemeLayer.jsFile · 0.45
mapv.min.jsFile · 0.45
mapv.jsFile · 0.45

Calls 1

unregisterMethod · 0.95

Tested by

no test coverage detected