MCPcopy
hub / github.com/nwutils/nw-sample-apps / addStop

Function addStop

mini-code-edit/cm/lib/codemirror.js:2826–2829  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

2824 function stopMethod() {e_stop(this);}
2825 // Ensure an event has a stop method.
2826 function addStop(event) {
2827 if (!event.stop) event.stop = stopMethod;
2828 return event;
2829 }
2830
2831 function e_preventDefault(e) {
2832 if (e.preventDefault) e.preventDefault();

Callers 5

drag_Function · 0.85
onDropFunction · 0.85
onKeyDownFunction · 0.85
onKeyPressFunction · 0.85
onKeyUpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected