MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / executeHandler

Function executeHandler

lib/web/CodeMirror/test/vim_test.js:160–167  ·  view source on GitHub ↗
(handler)

Source from the content-addressed store, hash-verified

158 return function(args) {
159 if (args instanceof Array) { arguments = args; }
160 function executeHandler(handler) {
161 if (typeof handler == 'string') {
162 CodeMirror.commands[handler](cm);
163 } else {
164 handler(cm);
165 }
166 return true;
167 }
168 for (var i = 0; i < arguments.length; i++) {
169 var key = arguments[i];
170 // Find key in keymap and handle.

Callers

nothing calls this directly

Calls 1

handlerFunction · 0.85

Tested by

no test coverage detected