MCPcopy Index your code
hub / github.com/microsoft/SandDance / prevent

Function prevent

docs/app/js/sanddance-app.js:141858–141861  ·  view source on GitHub ↗
(view, type)

Source from the content-addressed store, hash-verified

141856 });
141857}
141858function prevent(view, type) {
141859 var def = view._eventConfig.defaults, prevent1 = def.prevent, allow = def.allow;
141860 return prevent1 === false || allow === true ? false : prevent1 === true || allow === false ? true : prevent1 ? prevent1[type] : allow ? !allow[type] : view.preventDefault();
141861}
141862function permit(view, key, type) {
141863 const rule = view._eventConfig && view._eventConfig[key];
141864 if (rule === false || (0, _vegaUtil.isObject)(rule) && !rule[type]) {

Callers 1

sendFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected