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

Method registerPriority

src/common/commontypes/Events.js:278–280  ·  view source on GitHub ↗

* @function Events.prototype.registerPriority * @description 相同的注册方法,但是在前面增加新的监听者事件查询而代替到方法的结束。 * @param {string} type - 事件注册者的名字。 * @param {Object} [obj=this.object] - 对象绑定的回调。 * @param {function} [func] - 回调函数,如果没有特定的回调,则这个函数不做任何事情。

(type, obj, func)

Source from the content-addressed store, hash-verified

276 * @param {function} [func] - 回调函数,如果没有特定的回调,则这个函数不做任何事情。
277 */
278 registerPriority(type, obj, func) {
279 this.register(type, obj, func, true);
280 }
281
282
283 /**

Callers

nothing calls this directly

Calls 1

registerMethod · 0.95

Tested by

no test coverage detected