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

Function disableClickPropagation

libs/leaflet/leaflet-src.js:2890–2894  ·  view source on GitHub ↗
(el)

Source from the content-addressed store, hash-verified

2888 // Adds `stopPropagation` to the element's `'click'`, `'dblclick'`, `'contextmenu'`,
2889 // `'mousedown'` and `'touchstart'` events (plus browser variants).
2890 function disableClickPropagation(el) {
2891 on(el, 'mousedown touchstart dblclick contextmenu', stopPropagation);
2892 el['_leaflet_disable_click'] = true;
2893 return this;
2894 }
2895
2896 // @function preventDefault(ev: DOMEvent): this
2897 // Prevents the default action of the DOM Event `ev` from happening (such as

Callers 1

leaflet-src.jsFile · 0.85

Calls 1

onFunction · 0.70

Tested by

no test coverage detected