MCPcopy Index your code
hub / github.com/philc/vimium / push

Method push

lib/handler_stack.js:29–34  ·  view source on GitHub ↗
(handler)

Source from the content-addressed store, hash-verified

27 // Adds a handler to the top of the stack. Returns a unique ID for that handler that can be used
28 // to remove it later.
29 push(handler) {
30 handler.id = ++this.counter;
31 if (!handler._name) handler._name = `anon-${handler.id}`;
32 this.stack.push(handler);
33 return handler.id = ++this.counter;
34 }
35
36 // As above, except the new handler is added to the bottom of the stack.
37 unshift(handler) {

Callers 6

makeXPathFunction · 0.45
getVisibleClientRectFunction · 0.45
getClientRectsForAreasFunction · 0.45
dom_utils.jsFile · 0.45
addEventListenerFunction · 0.45
getKeyCharStringFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected