MCPcopy
hub / github.com/philc/vimium / remove

Method remove

lib/handler_stack.js:96–107  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

94 }
95
96 remove(id) {
97 if (id == null) id = this.currentId;
98 for (let i = this.stack.length - 1; i >= 0; i--) {
99 const handler = this.stack[i];
100 if (handler.id === id) {
101 // Mark the handler as removed.
102 handler.id = null;
103 this.stack.splice(i, 1);
104 break;
105 }
106 }
107 }
108
109 // The handler stack handles chrome events (which may need to be suppressed) and internal (pseudo)
110 // events. This checks whether the event at hand is a chrome event.

Callers 15

removeTabFunction · 0.80
removeTabsRelativeFunction · 0.80
main.jsFile · 0.80
populatePageFunction · 0.80
populatePageFunction · 0.80
showValidationErrorsFunction · 0.80
showValidationErrorsFunction · 0.80
showAdvancedCommandsFunction · 0.80
showFunction · 0.80
hiddenFunction · 0.80
setFormFunction · 0.80
addRowFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected